0

Why this code fails at Test Case 3 ?

I am solving the 'Cheer Creator ' Challenge in python but it fails at Test Case 3. Can anyone help me what am I missing in here? yard = int(input()) if yard >10: print (yard*"High Five") elif yard <1: print ("shh") elif yard in range (1,11): print (yard*"Ra!")

7th Jan 2020, 2:44 PM
Ashutosh R. Yadav
Ashutosh R. Yadav - avatar
5 Answers
+ 1
~ swim ~ read the explanation section below there. Isn't it confusing?
7th Jan 2020, 2:57 PM
Ashutosh R. Yadav
Ashutosh R. Yadav - avatar
0
~ swim ~ I got confused by this. Explanation If your team gains 3 yards you would cheer 'Ra!' three times for that play. That's why I printed 'High Five' many times.
7th Jan 2020, 3:05 PM
Ashutosh R. Yadav
Ashutosh R. Yadav - avatar