American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • 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:

  1. We started Python digital drawing using Turtle.
  2. Learnt how to use t.forward, t.goto, t.left (and t.right)
  3. Learnt how to set colors using t.bgcolor and t.color
  4. Learnt how to use t.penup and t.pendown to move locations
  5. Learnt how to use t.begin_fill and t.end_fill to fill color for shapes.

Homework:

  1. Create a new file “June25_Turtle4ShapesHomework.py”
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

Details

Date:
June 25
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights