- This event has passed.
4 PM – Intro To Python – Darin
April 22 @ 4:00 pm - 5:00 pm
What We Did Today:
- Learnt the basic of turtle, how to use goto(), forward(), right(), left(), penup(), and pendown().
- Learnt how to draw shapes on the screen using geometry.
- Learn how to use functions to do multiple drawings in one go.
Homework:
Your homework will be based on the following link: https://www.ayclogic.com/event/6-pm-intro-to-python-46/
- Create a new file “Apr22_4ShapesInTurtle_HW.py”, and follow the instructions below to be as EXACT as you can to the coordinates given. You can zoom into the picture if it is hard to see.
- Create a new function “draw_rectangle”. One parameter: pen_color. Inside the function, draw a rectangle shape using turtle module. Call the function and pass any color to the function.
- Create a new function “draw_square”. One parameter: pen_color. Inside the function, draw a square shape using turtle module. Call the function and pass any color to the function.
- Create a new function “draw_octagon”. One parameter: pen_color. Inside the function, draw a octagon shape using turtle module. Call the function and pass any color to the function.
- Create a new function “draw_triangle”. One parameter: pen_color. Inside the function, draw a triangle shape using turtle module. Call the function and pass any color to the function.
- Look at this image for your coordinates guidance
Notes:
You can contact me via ddjapri@ayclogic.com for any questions or concerns.