Advertisement
Advertisement
#Python - if conditional statement program
#First if statement
if(10>5):
print ("10 is greater than 5")
#Second if statement
if(50<100):
print("50 is less than 100")
print("Second statement associated with if statement")
#Third if statement
if(2>4):
print("2 is greater than 4")
print("Statement outside if Statement") #This line is not associated with any if block
10 is greater than 5
50 is less than 100
Second statement associated with if statement
Statement outside if Statement
Advertisement
Advertisement
Please check our latest addition
C#, PYTHON and DJANGO
Advertisement