- This event has passed.
7 PM – Intro to Python – Isaac
October 6 @ 7:00 pm - 8:00 pm
Today, we
- Learned basic Python turtle functions
- turtle.bgcolor(color) to set background color
- turtle.color(color) to set pen color
- turtle.penup(), turtle.pendown() to stop and start drawing
- turtle.goto(x, y) to go to a location
- turtle.begin_fill(), turtle.end_fill() to fill in a shape
- Made a draw_square function and draw_triangle function with turtle.goto()
- Made a draw_triangle function with turtle.forward() and turtle.right()
- turtle.forward(steps) to go forward
- turtle.left(degrees), turtle.right(degrees) to turn left and right
Homework
- Create a new file “Oct_6_turtle_shapes_hw.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 an 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

If you have any questions, feel free to email me at isaac@ayclogic.com.