Summary: this tutorial will introduce you to
the Python Variables.
Introduction to Python Variables
What is Python Variables: Declare, Concatenate, Global & Local ?
Variable is a name which is used to refer memory location. Variable also known as identifier and used to hold value.
In Python, we don't need to specify the type of variable because Python is a type infer language and smart enough to get variable type.
Variable names can be a group of both letters and digits, but they have to begin with a letter or an underscore.
It is recomended to use lowercase letters for variable name. Ethan and ethan are two different variables.
Declaring Variable and Assigning Values
Python does not bound us to declare variable before using in the application. It allows us to create variable at required time.
We don't need to declare explicitly variable in Python. When we assign any value to the variable that variable is declared automatically.
The equal (=) operator is used to assign value to a variable.
If Was this tutorial helpful? so please share by social media
If Was this tutorial helpful? so please share by social media
0 comments:
Post a Comment