#------------------------>Variable<-------------------------------
name = "It's me Rakshit" # String Variables
age = 5 #Integer variable
print(type(name))
print(type(age))
#another method:
name,age = "It's me Rakshit",5 #Same as above
a=b=c=5
print(a+b+c)
# Type of variable: string,int,float,list,dict,tuple etc.
#------------------output-----------
# <class 'str'>
# <class 'int'>
# 15
Comments
Post a Comment
If you've any doubts, please let me text