+ 1

Why doesn't work on test case #5?

crimnum = int(input()) if crimnum < 5 and crimnum > 0: answer = "I got this!" elif 5 <= crimnum <= 10: answer = "Help me Batman" elif crimnum > 10: answer = "Good Luck out there!" print(answer)

21st Jan 2020, 10:16 PM
Marc PUIG CREIXELL
2 odpowiedzi
+ 3
All you have to do is take out 'and crimnum>0' , then it works. Maybe the last input is zero?
21st Jan 2020, 10:27 PM
HonFu
HonFu - avatar
+ 1
elif 5 >= crimnum
21st Jan 2020, 10:26 PM
BroFar
BroFar - avatar