Python If...Else
01
Conditional Statements
Python supports the usual logical conditions from mathematics. These can be used in if statements and loops.
Example
a = 33
b = 200
if b > a:
print("b is greater than a")Output
b is greater than a
Python supports the usual logical conditions from mathematics. These can be used in if statements and loops.
a = 33
b = 200
if b > a:
print("b is greater than a")Output
b is greater than a