Conditional statement


in this topic, U will see in the pic that I use a conditional statement and when i run the programme on compiler than it shows only done and the upper two print functions created would not be shown could u please show me about this mistake…

I think the problem may be that you want your if statement to be weight < = 82. Your current if statement will only execute when weight is a number less than 82 rather than less than or equal to.

Thanks a lot for giving Ur precious time I’m really really thankful for U…

Because your weight variable is equal to 82

U can do this "if weight <= 82:
print(“what you need”)
"

This is because the weight variable is qual to 82 and not less than 82.
use if weight<=82:
print(’’)
It will solve your problem