Variables In Python

Variable :

A variable holds a value that may change. 
The process of writing the variable name is called declaring the variable. 
Variables do not need to be declared explicitly in python in order to reserve space like C language, Java etc. 
During initialize the variable in Python, Interpreter automatically does the declaration process. 
Syntax of variable is : 
Variable = Expression

Rules To Create Variables :

Variable name must start with a letter or underscore. 
It cannot start with a number. 
It contains alpha-numeric characters and underscores.
Variable names are case-sensitive. 
We can't used keywords as variable name.

Post a Comment

0 Comments