J
JosephAZ
Guest
Hey,
I am trying to import the turtle module in VS:
import turtle # here I got this error (raceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".\turtle.py", line 2, in <module>
turtle.forward(30)
NameError: name 'turtle' is not defined)
So i can't keep going with the next function calls
s = turtle.Screen()
a = turtle.Turtle()
a.forward(50)
a.left(90)
a.forward(30)
s.mainloop()
Continue reading...
I am trying to import the turtle module in VS:
import turtle # here I got this error (raceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".\turtle.py", line 2, in <module>
turtle.forward(30)
NameError: name 'turtle' is not defined)
So i can't keep going with the next function calls
s = turtle.Screen()
a = turtle.Turtle()
a.forward(50)
a.left(90)
a.forward(30)
s.mainloop()
Continue reading...