Python - Introduction Variables


Variables are names used to keep track of data in your program.

In Python Variables are created when they are first assigned values.

Variables must be assigned before they can be used in expressions.

b = 4 

You don't need to pre declare variables in Python, but they must have been assigned before you can use them.

You have to initialize counters to zero before you can add to them, initialize lists to an empty list before you can append to them, and so on.

Related Topics