# First program! # bring in the turtle information from turtle import * # use the def keyword to create a new function def draw_square(): # use a four loop to repeat something for i in range(4): forward(100) right(90) # Notice that both for loops and function definitions have colons at the end! # Notice that all functions have parentheses after them draw_square() # call our new function right(45) color("tan") # "dip the pen in tan paint" width(4) # make our line thicker fill(True) # start filling draw_square() fill(False) # stop filling up() # bring the pen up goto(200, 200) down() # put the pen down (start drawing) draw_square() up() goto(-200, -200) down() color("red") draw_square()