+ 2
[Code Coach] cheer creator code is not working why?
10 Antworten
+ 3
Maninder $ingh You're welcome.
Slowly, slowly we got there.
+ 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.
+ 2
Mihai Apostol thanks it works.
+ 1
What happens when x > 10
+ 1
Mihai Apostol
x>=10
+ 1
Mihai Apostol it means i will say high five only when they move 10 yards.
+ 1
n=int(input(""))
if n<1:
print("shh")
elif n>=1 and n<11:
print("Ra!"*n)
else:
print("High Five")
0
Maninder $ingh What inequality did you use x > 10 or x >= 10
0
Maninder $ingh
From description:
if they move forward 10 yards or less, you say 'Ra!'
0
Maninder $ingh No it means you say High Five for strictly more than 10 yards, 10 not included.