Python datatype & variable
What is datatype?
Datatype represents the different kinds of values that we stored on the variable.
Datatype:-Numbers,string,dict,set,list,tuple
1)we do not need to specify the data type explicity based on values types allocated automatically.
2)python is dynamically typed language.
What is variable?
Variable is the name of memory location where we can stored different type of values.
for example we want to print ankit wee write
print('ankit')
but if we write again and again so named ankit as a
a='ankit'
print(a)
ankit
Some example of list,tuple,set,dict.


Comments
Post a Comment