Download our e-book of Introduction To Python
Shery Dsouza
2 years ago
value = 1000
if ( value == 1000 ) :
print ("Value of expression is 1000")
Value of expression is 1000
no1 = 10
no2 = 50
if(no1 >= no2 ):
print(“ No 1 is greater than No 2”)
else:
print(“No 2 is greater than No 1”)
No 2 is greater than No 1
value1 = 10
value2 = 10
if value1 > value2:
print("value1 is greater")
elif value1 == value2:
print("both are equal")
else:
print("value2 is greater")
both are equal