Variables:
In [ ]: - variable term vary
- you want to save some values at some place , that place is called variable
- variables and constant
In [2]: number=100 # 100 values is stored in variable called number
number # so here number is a variable
Out[2]: 100
In [3]: number=200
number
Out[3]: 200
In [ ]: # so here first number has 100
# second number has 200
# number is changing its value
# thats why we are calling number as variable
Rules to define variables
In [4]: # Upper case
NUMBER=300
NUMBER
Out[4]: 300
In [5]: # lower case
number=400
number
Out[5]: 400
In [6]: # combination of upper case and lower case
NUMber=500
NUMber
Out[6]: 500
In [7]: # Combination of letters and numbers , numbers as suffix
number123=600
number123
Out[7]: 600
In [8]: # Combination of letters and numbers, numbers as prefix
123number=700
123number
Cell In[8], line 2
123number=700
^
SyntaxError: invalid decimal literal
In [10]: # spl charcters
number%=800
number%
Cell In[10], line 3
number%
^
SyntaxError: invalid syntax
In [11]: #underscore
number_=900
number_
Out[11]: 900
In [12]: # keywords
if=500
if
Cell In[12], line 2
if=500
^
SyntaxError: invalid syntax
In [13]: sum=700
sum
Out[13]: 700
Note:
sum is a math operation it will works
but do not use as variable
In [14]: # spaces will not allowed
number one= 700
number one
Cell In[14], line 2
number one= 700
^
SyntaxError: invalid syntax
In [15]: number_one=700
number_one
Out[15]: 700
In [16]: _=900
_
Out[16]: 900
In [ ]: ############### Basics###############
1) Basic syntax
2) Variables
3) python packages information
4) Basic python code
5) Conditional statements
6) functions
7) loop
################ Leve-2###############
1) Strings
2) List
3) dictionary
4) tuples ======== write up
5) sets
6) file handling sessions
========== 2 weeks gap ============== statistics theory
EDA: python
############ Level-3################
1) OOPS concept in python
2) how to create your own packages
3) FLASK APPS
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: