--Originally published at Programming
Assigning Values to Variables
Before we start listing the different Python variable types we need to know what a variable is. A variable is defined as a reserved memory location to store a value. Depending on which data type you are using the interpreter will decide what can be stored in the reserved memory.
Unlike any other programming languages in Python you don’t need to explicitly declare variables. In other words, the declaration happens whenever you assign a value to a variable. The operand left to the “=” sign is the variable and the one on the right is the value you are assigning to the variable. Let’s see some examples.
Standard Data Types
The variables in python can be declared of many types. Some of the Python data types are the Integers, Floats, Complex numbers, Strings, Boolean. etc…