American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

4 PM – Intro To Python – Darin

April 22 @ 4:00 pm - 5:00 pm

What We Did Today:

  1. Learnt the basic of turtle, how to use goto(), forward(), right(), left(), penup(), and pendown().
  2. Learnt how to draw shapes on the screen using geometry.
  3. 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/

  1. 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.
  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:

You can contact me via ddjapri@ayclogic.com for any questions or concerns.

Details

Date:
April 22
Time:
4:00 pm - 5:00 pm
Event Categories:
,
Verified by MonsterInsights