- This event has passed.
6 PM – Intro To Python – Darin
November 30, 2023 @ 6:00 pm - 7:00 pm
What We Did Today:
- Reviewed how to create shapes on turtle using turtle.goto(x, y)
- Learnt how to use turtle.forward()
Learnt how to use turtle.right() and turtle.left() - Learnt how to create a square using turtle.forward() and turtle.left() in a for loop
- Learnt how to create many squares using a function that uses turtle.forward() and turtle.left() in a for loop
Homework:
Create a new file called Nov30_TurtleFunctionsHW.py and submit it into the google drive when finished:
You will create triangles by calling a function that takes 2 parameters.
- Create a function named makeTriangle that takes in 2 parameters, x and y, which are used as the starting point for the triangle.
- Start by making a triangle first without a function, and then once that works, put that code into a function.
- Refer to the most recent class notes on how we made the square.
If you have any questions, email me at ddjapri@ayclogic.com!