Variable are containers that store information that can be manipulated and referenced later by the programmer within the code.
In python, the programmer does not need to declare the variable type explicitly, we just need to assign to assign the calue to the variable.
Example:
name = "Abdullah" #type string
age = 20 #type int
It is always advisable to keep names descriptive and to follow a set of convention while creating varaibles:
Example:
Color = "yellow" #valid variable name
cOlor = "red" #valid variable name
_color = "blue" #valid variable name
5color = "green" #invalid
$color = "blue" #invalid
rtuyukukbjnlm. fcgvkbj
xewaresydtghj
\jbhtrertdfgj
gcfxdzxfcjbhj
Comments (0)