+ 1

Interpretation

Why is the Output is like that ? grade = int(input("enter a number:")) if(grade >= 70 and grade <= 100): print("Passed!") Output=> enter a number:Passed!

8th Jan 2021, 3:08 AM
Miko Bacht
Miko Bacht - avatar
2 Answers
+ 1
Hi Miko Bacht, This code might work, grade = int(input("enter a number:")) if grade >= 70 and grade <= 100 : print("Passed!")
4th Nov 2022, 5:00 AM
Engineer X
Engineer X - avatar
+ 1
Make sure to type print statement under if.
4th Nov 2022, 5:01 AM
Engineer X
Engineer X - avatar