Cheer Creator Case 4 (python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Cheer Creator Case 4 (python)

I've been looking at this one for a while and can't seem to identify the error. Any help would be greatly,appreciated. Here is the code I am using: yards = int(input()) if yards > 10: print("High Five") elif yards < 10 and yards > 1: print("Ra!"*round(yards)) else: print("shh")

1st Oct 2020, 5:17 PM
Dan
2 Answers
+ 2
Dan make first elif be elif yards<=10 and yards >=1
1st Oct 2020, 5:23 PM
Abhay
Abhay - avatar
+ 1
Thanks guys!
1st Oct 2020, 5:36 PM
Dan