+ 2

[Code Coach] cheer creator code is not working why?

My code. https://code.sololearn.com/cNgF9tgP2g7w/?ref=app

22nd Feb 2020, 10:57 AM
Maninder $ingh
Maninder $ingh - avatar
10 Antworten
+ 3
Maninder $ingh You're welcome. Slowly, slowly we got there.
22nd Feb 2020, 11:21 AM
Mihai Apostol
Mihai Apostol - avatar
+ 2
Mihai Apostol thanks for your answer.your answer solve my 80% problem but 4th test is again wrong what's wrong with my code.
22nd Feb 2020, 11:05 AM
Maninder $ingh
Maninder $ingh - avatar
+ 2
Mihai Apostol thanks it works.
22nd Feb 2020, 11:20 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
What happens when x > 10
22nd Feb 2020, 10:59 AM
Mihai Apostol
Mihai Apostol - avatar
+ 1
22nd Feb 2020, 11:09 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Mihai Apostol it means i will say high five only when they move 10 yards.
22nd Feb 2020, 11:16 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
n=int(input("")) if n<1: print("shh") elif n>=1 and n<11: print("Ra!"*n) else: print("High Five")
23rd Feb 2020, 8:45 AM
ANJALI SAHU
0
Maninder $ingh What inequality did you use x > 10 or x >= 10
22nd Feb 2020, 11:07 AM
Mihai Apostol
Mihai Apostol - avatar
0
Maninder $ingh From description: if they move forward 10 yards or less, you say 'Ra!'
22nd Feb 2020, 11:10 AM
Mihai Apostol
Mihai Apostol - avatar
0
Maninder $ingh No it means you say High Five for strictly more than 10 yards, 10 not included.
22nd Feb 2020, 11:18 AM
Mihai Apostol
Mihai Apostol - avatar