0
I posted this question before but I think it got deleted because I can't find it.I'm trying to solve the cheer creator challenge
yards=int(input()) if yards>10: print("High Five") elif yards<1: print("shh") else: while yards>0: print("Ra!") yards=yards-1
6 Antworten
+ 3
Rainnn
print bydefault print values with new line so you should do
print("Ra!", end = '')
And also currect indentation.
+ 2
That's not enough please provide more information on what you're trying to do ( expected outcome ) & what's happening instead ( current scenario )
+ 2
The indentation of the while loop is incorrect except this I don't see any problem.
+ 1
I solved it!! Thanks for all the help!!
0
This is the task:
Given the number of yards that your team moved forward, output either 'High Five' (for over 10), 'shh' (for <1), or a string that has a 'Ra!' for every yard that they gained.
0
Input Format
An integer value that represents the number of yards gained or lost by your team.
Output Format
A string of the appropriate cheer.
Sample Input
3
Sample Output
Ra!Ra!Ra!