Name must start with lower , upper or with underscore , Can't start with number

In [ ]:
abc1=45
_abc1=45
Abc1=45
#1abc = 45 # not allowed , error 
print(abc1)

can reassign to different type of variable

In [ ]:
abc=45  # integer variable 
abc='Welcome' # string 
print(abc)

Variables are Case sensitive

In [ ]:
abc=45
Abc=46
print(ABC) # error , Not defined. 

Reserved words can be used

In [ ]:
def=45  # error  as def is a reseverd word

Must assign before use

In [ ]:
print(a)

Operation within the same type variables

In [ ]:
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

In [ ]:
a='welcome'
b=34
print(type(a))
print(type(b))
<class 'str'>
<class 'int'>