- This event has passed.
7 PM – Intro To Python – Darin
June 25 @ 7:00 pm - 8:00 pm
Next week is a holiday, we will meet again on July 9.
What We Did Today:
- We started Python digital drawing using Turtle.
- Learnt how to use t.forward, t.goto, t.left (and t.right)
- Learnt how to set colors using t.bgcolor and t.color
- Learnt how to use t.penup and t.pendown to move locations
- Learnt how to use t.begin_fill and t.end_fill to fill color for shapes.
Homework:
- Create a new file “June25_Turtle4ShapesHomework.py”
- 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:
If you have any questions, you can contact me at ddjapri@ayclogic.com
Also if you cant get this to work with the functions, go ahead and do it without the functions.