Download our e-book of Introduction To Python
Pallavi Dhotre
2 years ago
x = 10
y = 20
X=-4.56
Flag=True
Address= “Pune, Maharashtra”
color=[]
list_name=[value1,value2,value3]
color=['red','green','blue']
marks=[60,75,80]
list_name=[value1,value2,value3]
info=["name",80,13000.0]
color=('red',)
tuple_name=(value1,value2,value3)
color=('red','green','blue')
marks=(60,75,80)
tuple_name=(value1,value2,value3)
info=("name",80,13000.0)
data={'Name':'Ram','Mob_No':6787998845,'Salary':45000}
a=input() #default type is string
a=int(a) #converted to python str to int
a=int(input()) #data type is int
a=float(a) #converted to float
x=['red','green','blue'] #list
y=tuple(x) #converting list to tuple