I am not so new to Python that this is going to be a syntax error. I have never actually messed with turtle graphics that much though, so this was totally new to me. Anyway I was trying to make a turtle graphic spiral that would take input from a user(strings, numbers etc.) and turn it into a neat spiral. anyway I got this error message when ran I the code.
Please note I am using Python 3.
Traceback (most recent call last):
File "spiral_my_name.py", line 6, in <module>
your_name = turtle.textinput("Enter your name", "What is your mame?")
AttributeError: 'module' object has no attribute 'textinput'
that was the error message I got from this syntax:
import turtle
t = turtle.Pen()
turtle.bgcolor('black')
colors = ['purple', 'pink', 'green', 'blue']
your_name = turtle.textinput("Enter your name", "What is your name?")
for x in range(100):
t.pencolor(colors[x%4])
t.penup()
t.forward(x*4)
t.pendown()
t.write(your_name, font = ("Arial", int ( (x+4) / 4), "bold") )
t.left(92)
Now I don't personally use Python for this a whole lot, so I was just going to let this go, but this is an Attribute error. I sort of want to know why this is happening.