Top | 50 Python Control Flow & Conditional Logic quiz | Question 7

Last Updated :
Discuss
Comments

What is the output of the following code snippet?

x = 10
if x > 5:
   print("Greater than 5")
elif x > 8:
   print("Greater than 8")
else:
   print("Less than or equal to 5")
 

Greater than 5

Greater than 8

Less than or equal to 5

No output

Share your thoughts in the comments