← Quiz: Python Conditions: all 13 questions
Quiz: Python Conditions · Question 11 of 13
What does this print? (code)
What does this print?
x = 7
if x > 5:
if x % 2 == 0:
print("big even")
else:
print("big odd")
- A.big even
- B.big odd
- C.Nothing
- D.big even big odd
Answer & explanation
Correct answer: big odd
The outer condition is true, and the inner else runs because 7 is odd.
Can you get the rest right without peeking?
Take the timed Quiz: Python Conditions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →