python programming day-4 quick start variables and data types
Channel:
Subscribers:
1,470
Published on ● Video Link: https://www.youtube.com/watch?v=BtrmmU-BLG4
what is variable ?
variable is like container which hold its value. python is smart enough to find-out type of variable
without any declaring varibale
what is data types ?
1.Numeric data types: int, float, complex
number data 10 ,10.10 10+10i
2.String data types: str
alphabet data
3. Boolean type: bool
True/False (Yes/no)
4. Sequence types:
list a= [1,2,3,4,5,6]
b=["vihsal","ashish","pradip"]
c= ["vishal","ashish",1,2,3,"pradip"]
tuple
integer type of data in tupple
a=(1,2,3,4)
multi-type of data.
b=("vishal", 1,2,3,"ashish")
5. Mapping data type:
dict
eg : a = {name:"vishal",sex:"male", "age":16}