Python Variables

A variables is a location in memory used to store value.they are given unique names to differentiate between different memory location.the rules for writing a variable name is same as the rules for writing identifiers in python.

In python do not need to declare a variable before using python,we simply assign a value to a variable and it will exist.we don't even have to declare the type of the variable.this is handled internally according to the type of value we assign the variable.


>>> a = 10;
>>> print(a);
Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!