Python Class 01
Python Class 01
Data science
Automation
AI
if(5>2)
{
printf(“5 is greater than 2”)
}
If 5 >2 :
print(“ 5 is greater than 2”)
Variable:
Start with a letter
No symbol can be used.
Cannot start with a number.
Can use _ .
Case -sensitive.
Areeb areeb
Data types:
Name = “areeb”
“ “ === string
10 === int
110.58=== float
True\false == bool
Name = “Areeb“ // string
Age = 22 //int
Height = 5.3 //float
Male = True //bool
Female = False //bool
Reg = “210”
Reg = “10”
Registration = int(Reg) // string to int
print(Registration) \\ 10
Reg = 10
Registration = str(Reg) // int into string
print(Registration) // ”10”
Sum = a+ b
mul= a*b
div= a\b