Name must start with lower , upper or with underscore , Can't start with number
abc1=45
_abc1=45
Abc1=45
#1abc = 45 # not allowed , error
print(abc1)
can reassign to different type of variable
abc=45 # integer variable
abc='Welcome' # string
print(abc)
Variables are Case sensitive
abc=45
Abc=46
print(ABC) # error , Not defined.
Reserved words can be used
def=45 # error as def is a reseverd word
Must assign before use
print(a)
Operation within the same type variables
a='45' # a is a string variable , it is not an integer
b=42
#print(a+b) # error as we can't add one string with integer variable
print(a+str(b)) # this is fine
print(int(a)+b) # this is fine
By using type() we can get the data type of the object
a='welcome'
b=34
print(type(a))
print(type(b))