Python Variable Example


Python variable is a container in memory (storage area) to hold value or data. In python there is no need to assigned a variable with datatype because python can detect the datatype of variable automatically.

We can assigned a value to variable by simply using assignment operator (=).

Program
a=10 print(a) b= 'fresherbell.in' print(b)
Input
Output