Cheer creator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Cheer creator

What seems to be wrong with my code? I’m doing the cheer creator challenge and it’s rejecting on a test I can’t see. yards = int(input()) if yards < 1: print("shh") elif yards > 0 and yards < 10: for x in range(yards): print("Ra!") elif yards > 10: print("High Five")

12th Oct 2021, 4:21 AM
Jibraeel Abdelwahhab
Jibraeel Abdelwahhab - avatar
1 Answer
+ 2
You did not do some thing for 10 you have to do either yards = or =< or =>
12th Oct 2021, 4:31 AM
Lz1234