Whatā€™s wrong with the code? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 5
And <=10. The interpreter having problems is the interpreter of the task description this time. ;-)
8th Jan 2020, 11:04 PM
HonFu
HonFu - avatar