Consider the following code (fork it!)
https://replit.com/@JimSkon/TurtleFunctions
Note it is using something called “functions” which we will learn more about next week.
This allows use to group code together, and reuse it. It also allow us to “pass” variables to the function.
1. Can we write a function to draw a rectangle:
def drawRectangle(t,height,width):
2. How about a function to make a triangle?
3. Can we make function called house that makes a house (it makes a square or rectangle for a house, and a triangle for a roof)?
4. Can we add features to the house?
