Turtle Challenge 1
Create and save a file called tu1 to work in
Open IDLE, File, New File, Copy the code below into your new file.
Vocabulary Python libraries are collections of pre-written code and functions that extend the capabilities of the Python programming language. Turtle is a library file which is why it has to be imported at the beginning of the code.
import turtle #Turtle library
t=turtle.Turtle() #name of the turtle (t) / you can add more turtles here
wn=turtle.Screen() #Creates the turtle window
t.fd(30) #All turtle commands go after row above and before the last row
wn.exitonclick() #Do NOT delete must go at the end
Save your work
Run your code (you can press f5 on keyboard)
Try changing the distance the line travels from 30 to 100
Save your code and run it again
Screenshot
Bugs
Did you copy all the code from above try copying it again.
Did you accidentally delete the last line?
For more clues to fix your code DEBUG