Nov-13-2018, 11:10 PM
I don't know why it's drawing the arrow. It's clear that the Pen command is drawing it, but Pen with a capital p is not documented. With a lowercase p it doesn't do that, it should just return the current pen settings.
Your first command doesn't work because fred isn't a Turtle object. At the end of your program, fred is None, because that's what turtle.color returns. If you want a turtle named fred to manipulate, you need to create one with
Your first command doesn't work because fred isn't a Turtle object. At the end of your program, fred is None, because that's what turtle.color returns. If you want a turtle named fred to manipulate, you need to create one with
fred = turtle.Turtle()
. But to move that turtle you need to send the commands to fred, as in fred.forward(100)
.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures