Thursday, May 16, 2019

Variables in Python


Python is fully object oriented program. variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing. Variable also known as identifier. Variable names can be a group of both letters and digits, but they have to begin with a letter or an underscore

There are three types of variable:
  1. Independent Variable
  2. Dependent Variable
  3. Controlling Variable


Independent Variable:  Independent variable that stands alone and it does not changed by the other variables. It is used to determine the dependent variable. Independent variable can be controlled and manipulated.

Dependent Variable: Dependent Variable is a variable that depend on other factor.  It is only affected by our changes to independent variable.

Control Variable: Control Variable is a constant variable. It is used to regulate the flow of control in the program.






Click Here for more information of Python

No comments:

Post a Comment

How to control the flow of program in python

Python If-else Statement If-else statement is a decision making statement that allow us to run a particular block of code for a particula...