# Our first program! # bring in the turtle functions from turtle import * # demonstrates drawing a function # notice that you always need parentheses and a colon # the contents of the function are tabbed in def draw_square(): forward(50) left(90) forward(50) left(90) forward(50) left(90) forward(50) color("red") pensize(10) hideturtle() draw_square() penup() goto(100, 100) pendown() begin_fill() draw_square() end_fill() # So that our window won't crash mainloop()