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

6th May 2023, 10:29 AM
Rainnn
Rainnn - avatar
6 Answers
+ 3
Rainnn print bydefault print values with new line so you should do print("Ra!", end = '') And also currect indentation.
6th May 2023, 12:13 PM
A͢J
A͢J - avatar
+ 2
That's not enough please provide more information on what you're trying to do ( expected outcome ) & what's happening instead ( current scenario )
6th May 2023, 10:57 AM
zexu knub
zexu knub - avatar
+ 2
The indentation of the while loop is incorrect except this I don't see any problem.
6th May 2023, 12:07 PM
zexu knub
zexu knub - avatar
+ 1
I solved it!! Thanks for all the help!!
6th May 2023, 12:17 PM
Rainnn
Rainnn - avatar
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.
6th May 2023, 11:38 AM
Rainnn
Rainnn - avatar
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!
6th May 2023, 11:38 AM
Rainnn
Rainnn - avatar