forward(side_length) and right(120) three times
In the function section of def rectangle I added:
forward(height) and forward(width) two times and right(90) four times
Checkpoint 2: A function is like a variable by assigning a value to it. When we made the function of triangle we have one parameter where we set it to be side_lenth of the triangle just like how if we have a variable we set it to refer to soemthing. Functions can be helpful in breaking down big, hard problems by idenitfying what the function should be and what parameters it might need. We then would have that function do what it needed to do such as for the triangle function we moved the pen forward and to the right to make a triangle. One example could be if we would like to draw a picture. We might want multiple different shapes in the picture so we could create a function for each shape to help make the picture. This is similar to this lab with the creation of triangles and rectangle.
I added import math, area = math.pi * (radius * radius) and print(area).
Checkpoint 1: Value is anything that is what it is instead of referring to something else. Name is referred to something else. A name could change or be different depending on different contexts. A name can be refer to you but you can change your name or you may have different variations of your name. Variables are a name that refers to a value. Assign a value to a variable. Variables are very useful in programming as we can assign the value on the right to the name on the left (name = value). If we want to change the value of the name we can easily go back and change it which is helpful in programming. You also can use the name/variable name instead of the value. For example for the value of pi rather than typing that value out you can assign the value to the name and use the name throughout the whole programming code.