I keep on getting an error where it says turtle with the red line under it I'm not sure how to fix it. it keeps on saying something is wrong enter image description here
You should indent your code properly. Python is very strict about indentation:
class Pen(turtle.Turtle):
def __init__(self):
turtle.Turtle.__init__()
# and so on
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.