Codecademy Forums

Questions about the specifics of strings

I keep getting “Failed to test your code” for the first section.
I’ve defined the code:

def repeat_stuff(stuff, num_repeats):
print(" ")

but I am not allowed to continue onto the next section. Am I doing something wrong?

I keep getting the same error for “Control flow” lesson 9.

I’ve even copied in the solution code, and it still tell me that “Failed to test your code” and just doesnt wan’t to move on.

Yes, it is. When you concatenate it 10 times, it would make sense.

You also have to make sure the R in Row is capitalized. I just spent an hour trying to figure out why it wasn’t working even though the console showed “row 3” XD…

I got it!!!

def repeat_stuff(stuff, num_repeats):
‘indented here’ print()
repeat_stuff("Row ", 3)

That’s it! I had originally had an ‘=’ sign after the ‘repeat_stuff’ of line 3. Another key factor was to make sure there is a space after the ‘Row’ of the "Row " on line 3. --> ‘Row_3’.
Hope this helps someone.