+ 2

[ SOLVED ] Code coach Cheer creator problem

You are cheering on your favorite team. After each play, if your team got over 10 yards further down the field, you stand up and give your friend a high five. If they don't move forward by at least a yard you stay quiet and say 'shh', and if they move forward 10 yards or less, you say 'Ra!' for every yard that they moved forward in that play. 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. 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! Here's my try: https://code.sololearn.com/c3h71ur1pg0p/?ref=app Test case 4 doesn't work. Please tell me what's wrong.

10th Sep 2021, 10:59 AM
praneetha
praneetha - avatar
2 Antworten
+ 2
Hi Praneetha! It says that you have to print High Five for over 10 and shh for less than 1. It means 10 should be included in your last condition that prints 10 times Ra! for input 10(move <=10)
10th Sep 2021, 11:06 AM
Python Learner
Python Learner - avatar
10th Sep 2021, 11:52 AM
praneetha
praneetha - avatar