Ask coding questions

← Back to all posts
Basic code (What is wrong with the code)
smaisikeli (2)

I am testing the following piece of code but I am getting errors from line 3. Please help

  1. import turtle as t
  2. for i in range(1,20):
  3. t.left(90)
  4. t.forward(100)
  5. t.left(90)
  6. t.forward(100)
  7. t.left(5)
Commentshotnewtop
mattdoan (10)

When using Turtle with repl.it, you should make a Python with Turtle repl.it, not a Python 3 repl.it

If you make just a basic Python 3 repl. you will not have a display screen to work on.

AppliDev (82)

The error is that there is not display screen. I think the error is with repl.it. Repl.it is not creating another screen for the turtle to run on!