# Kelvin Ly
# 10/27/12
# A nice little design plus a little tutorial on functions.

import turtle

# The following line defines main() as a function, meaning all the code
# written indented inside of it will be run when it is called. Contrawise,
# nothing inside of it will run until it is called.

def main():
   for i in range(400):
      if i % 100 == 0:
        turtle.right(90)
        turtle.forward(120)
      if i % 20 == 0:
        turtle.left(72)
        turtle.forward(50)
      turtle.forward(50)
      turtle.left(162)
   # All of this is in the main() function. There's no reason why it's called
   # main() other than because that's the notation used in other programming
   # languages.

main()
#The above line calls the main() function, causing the code in it to run.

