Programming (12th Grade)
if-elif-else
What will be the output of the following code? x = 5 if x > 10: print('x is greater than 10') elif x < 10: print('x is less than 10') else: print('x is equal to 10')
x is greater than 10
x is less than 10
x is equal to 10
Error