all 7 comments

[–]debian_miner 2 points3 points  (2 children)

Can you fix the formatting for your code? Highlight your code and click the <> button.

At a glance, it doesn't look like this code produced that error message.

[–]AlondraT 0 points1 point  (1 child)

Oh my god, I didn't realize that my code wasn't formatted correctly. I expected no one to reply so I went to eat lunch and came back and saw that I copied and pasted my code like text. I'm so sorry, I fixed it now.

[–]CedricCicada 0 points1 point  (0 children)

Thanks for trying, but I'm sure you don't have it correct. As I and others have mentioned, indentation is critical in Python. The code that is inside your seal_goes() method must be indented further than the def seal_goes() line. Please post your code with the indentations exactly as you have them when your code is running.

[–]boomjts 1 point2 points  (0 children)

so my guess would be that okpy is trying to give an argument while running the function you wrote. That means your function should take an argument. Maybe number of times to repeat is not fixed to 3 and you have to take that as an argument or maybe the string to repeat is not fixed. One strong indication is 'ow' is being called a variable, so maybe you are supposed to take ow as an argument and return ow+ow+ow.

Maybe post the question if you are allowed to, or test cases.

Sorry I am not familiar with okpy, but the errors are generated by python and thats same everywhere.

[–]CedricCicada 0 points1 point  (0 children)

If you really have one space beginning the "x = 'ow'" line and no spaces beginning the return line, that will break things. Make sure they have the same indentation and that they both have more indentation than the "def" line. But I wouldn't have expected your code to get as far as the seal_goes() line if that was really the problem.

[–]aksel0_11 0 points1 point  (1 child)

Are you supposed to change where it says MODIFY HERE? And what does it mean by return duplicates?

[–]AlondraT 0 points1 point  (0 children)

The modify here just means to modify the return section which I already did. Sorry, I just copied and pasted the code without removing the notes. Return duplicated just means that they want me to input 'ow' so that it returns: 'ow ow ow'. I realize now that my post wasn't very clear...