0

I am trying to submit a turtle program in codio, but the autograder keeps telling me I am missing indentations in my function definition section. My program works perfectly in other IDE's like repl.it and VScode. Codio is basically saying that everything needs to be indented 1 more, but if I do that it will break.

Here is a section of my code. The indentation is the same throughout all of my functions:

def triangle(size):
    for _i in range(3):
    bby.forward(size)
    bby.rt(120)

def rectangle(size):
  for _i in range(2):
    bby.forward(size*2)
    bby.rt(90)
    bby.forward(size)
    bby.rt(90)
  • The two lines inside the `for` loop in `triangle` need to be indented more. That won't break anything. – mkrieger1 Oct 02 '21 at 18:10
  • 1
    Your question should be answered here: [I'm getting an IndentationError. How do I fix it?](https://stackoverflow.com/questions/45621722/im-getting-an-indentationerror-how-do-i-fix-it) – mkrieger1 Oct 02 '21 at 18:10

0 Answers0