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)
mattdoan (15)

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

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

PDanielY (630)

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