+ 1

Why does the test case 4 is wrong??

n = int(input()) if n >= 10: print("High Five") elif n <= 10: print(n*"Ra!") if n < 1: print("shh")

30th Jun 2021, 1:23 PM
Shahir
Shahir - avatar
2 Réponses
+ 4
"if n>=10:" (problem in this line) Read the problem description nicely, is it greater than equal to (>=) or just greater than(>) 10???
30th Jun 2021, 1:43 PM
minirkk
minirkk - avatar
+ 2
Shaik.Shahir In 1st and 2nd case you have used equal (=) so if n is 10 then only 1st will execute. So in 1st case there would be n > 10
30th Jun 2021, 3:51 PM
A͢J
A͢J - avatar