- This event has passed.
6PM – Intro to Python – Joshua Widjanarko
November 7 @ 6:00 pm - 7:00 pm
Today We Did:
- Reviewed the Quiz 2
- Introduced Turtle
- remember to import with import turtle
- How to put a background color
- How to put a draw with turtle
- penup() vs pendown()
- turtle.goto(x_coordinate, y_coordinate)
- How to fill a shape
In one new file, “October_7_turtle_basic_hw”, do the following:
Homework
- Create a new file “Nov30_Turtle_Basic_Homework.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_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.
- Create a new function “draw_octagon”. 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
email jwidjanarko@ayclogic.com for questions