Help me in solving PYTH74 problem

My issue

What will be the output of this code?

a = 5
b = 10

if a >= b:
print(“a is greater or equal to b.”)
if a == 0:
print(“a is 0.”)
if a <= 5:
print(“a is not more than 5.”)
print(“Program ends”)

Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

@antonsanjay
Correct Answer:

a is not more than 5. Program ends

HI @antonsanjay
Here you specify that giving output as a=5 and b=10.
1st condition in your code is a>=b, means 5>=10 this one is wrong. Check next condition
2nd condition in your code is a==0, means it checks that a=0 or not, here a not equal to 0, Its wrong . Check next condition
3rd condition in your code is a<=5, means 5<=5 this is Correct, it prints “a is not more than 5”,
and last prints “program ends”.

So, The answer is :
a is not more than 5.
Program ends

Thank you :blush: :blush: