Python Variables
Variables:
Variables are containers which hold different type of data. We can call or use that data by referencing the variable name.
Creating Variable:
Python has no method or declaration for creating a variable.you can create a variable in python like below
x=5 name= "avyukta" list = [1,2,3,4]
you can create a variable in python like below
Rules to be taken care of when creating python variable:
- A variable name must start with a letter or the underscore character.
- A variable name cannot start with a number.
- A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
- Variable names are case-sensitive (age, Age and AGE are three different variables)
Comments
Post a Comment