+ 2

Can anyone tell me where i went wrong it says no output

https://code.sololearn.com/cr8tnZ9vdnzg/?ref=app

20th Mar 2018, 7:16 PM
Leo
3 Respuestas
+ 6
Cat is not larger than 5.. to get the result just use that: cat = 2 if cat > 5: print("cat is bigger than 5") else: print ("cat is less than 6")
20th Mar 2018, 7:24 PM
Baraa AB
Baraa AB - avatar
+ 3
cat is not larger than 5, so it never executes the print statement use an else if you want to enter the second branch
20th Mar 2018, 7:19 PM
Louis
Louis - avatar
+ 2
thank you that simple mistake made it wrong. I have to be really careful thank you
20th Mar 2018, 7:25 PM
Leo