Tutorial #3 : Python - Variable Types


Multiple Assignment
Python allows you to assign a single value to several variables simultaneously. For example − a=b=c=1

Standard Data Types
The data stored in memory can be of many types. For example, a person's age is stored as a numeric value and his or her address is stored as alphanumeric characters. Python has various standard data types that are used to define the operations possible on them and the storage method for each of them.
Python has five standard data types −
  1. Numbers
  2. String
  3. List
  4. Tuple
  5. Dictionary

Learning by Examples

Example 1 :- 
x = "amogh"
print("Python is " + x)

Example 2 :- 
x = "Python is "
y = "easy to execute"
z =  x + y
print(z)

Comments