Enter your name
Enter your class
Enter your section
In Python, a decision can be made by using if else statement.
checking multiple condition in python requires if elif
The if statement in python is
The code inside the if statement is executed once
What does the following code print to the console?
if 5 > 10:
print("fan")
elif 8 != 9:
print("glass")
else:
print("cream")
What does the following code print to the console?
if True:
print(“101”)
else:
print(“202”)
What does the following Python program display?
x = 3
if ( x == 0 ):
print "Am I here?"
elif ( x == 3 ):
print "Or here?",
print "Or over here?"