if condition

Last updated about 5 years ago
10 questions
0

Enter your name

0

Enter your class

0

Enter your section

1

In Python, a decision can be made by using if else statement.

1

checking multiple condition in python requires if elif

1

The if statement in python is

1

The code inside the if statement is executed once

1

What does the following code print to the console?
if 5 > 10:
print("fan")
elif 8 != 9:
print("glass")
else:
print("cream")

1

What does the following code print to the console?
if True:
print(“101”)
else:
print(“202”)

1

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?"