+ 2

What’s wrong with the code?

I have everything else in my code correct for the cheer creator, but I’m getting the answers wrong for one portion. I believe it has to do with the last part of my code. Which needs a RA for every yard. This is how I have it formatted Yards = int(input()) elif Yards < 10 and Yards > 1: print("Ra!" * Yards) So if there was 4 yards gained I would need to print 4 RA!s What suggestions do you guys have that would make the code easier to read or that might be causing problems for the interpreter? I’ve tried your suggestions but I’m still getting an error for one of those questions.

8th Jan 2020, 11:00 PM
Jason Chadwick
Jason Chadwick - avatar
1 Answer
+ 5
And <=10. The interpreter having problems is the interpreter of the task description this time. ;-)
8th Jan 2020, 11:04 PM
HonFu - avatar