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:
  1. A variable name must start with a letter or the underscore character.
  2. A variable name cannot start with a number.
  3. A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
  4. Variable names are case-sensitive (age, Age and AGE are three different variables)

Comments

Popular posts from this blog

Python KeyWords

Introduction To Python

Python Cowin Slot Finder Software