« All Events
6 PM – Intro to Python – Daniel (Darin Sub)
September 18 @ 6:00 pm - 7:00 pm
What We Did Today:
- Learnt the basics of turtle drawing.
- Learnt how to shorten code by use of loops and functions.
Homework:
- Create a new file “Sep18_Turtle4ShapesHomework.py”
- Draw the rectangle and square as shown in the image.
- Create a new function “make_octagon”. You can use one parameter: pen_color. and just use t.goto() inside the function to draw an octagon shape using the turtle module. Call the function and pass any color to the function. Alternatively, create a whole octagon function similar to make_rectangle that we did in class.
- Create a new function “make_triangle”. You can use one parameter: pen_color. and just use t.goto() inside the function to draw an triangle shape using the turtle module. Call the function and pass any color to the function. Alternatively, create a whole triangle function similar to make_rectangle that we did in class.
- Look at this image for your coordinates guidance
- If you have any questions, email me at dmeng@ayclogic.com