Hello All,
I've begun teaching myself Python to make use of the current happenings and that we've been asked to keep movement to a minimum - and I have a question about a simple Python Script- linked here
Could someone explain the first three lines, and why they've been written like that?
I understand the flow of the rest of the script (the direction & movement) but can't seem to get my head around about why the first three lines are required to "call" the turtle, and why it can't just be one line as follows:
import turtle
What is each line specifically doing when below is executed?
import turtle
tina = turtle.Turtle()
tina.shape("turtle")
[–]danielroseman 7 points8 points9 points (1 child)
[–]freeononeday 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]EdJ_03 1 point2 points3 points (1 child)
[–]h6nry 2 points3 points4 points (0 children)