Ask coding questions

← Back to all posts
Python Turtle error
NiclasOstlund (0)


Im new to Python and I am experimenting with writing a function that draws a square. I have done som research on this and found a pice of code that should do the trick but I cant get it to work. Could someone please give me a hint to whats wrong. The error message says "ParseError: bad input "

Thanks a lot.

malvoliothegood (709)

You had a problem with your indentation. Python is really fussy about that. Have a look at this repl. It shows how to draw a filled square and contains a link to a document that has a list of turtle commands: