American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro to Python – Daniel (Darin Sub)

September 18 @ 6:00 pm - 7:00 pm

What We Did Today:

  1. Learnt the basics of turtle drawing.
  2. Learnt how to shorten code by use of loops and functions.

Homework:

  1. Create a new file “Sep18_Turtle4ShapesHomework.py”
  2. Draw the rectangle and square as shown in the image.
  3. Create a new function “make_octagon”. You can use one parameter: pen_color. and just use t.goto() inside the function to draw an octagon shape using the turtle module. Call the function and pass any color to the function. Alternatively, create a whole octagon function similar to make_rectangle that we did in class.
  4. Create a new function “make_triangle”. You can use one parameter: pen_color. and just use t.goto() inside the function to draw an triangle shape using the turtle module. Call the function and pass any color to the function. Alternatively, create a whole triangle function similar to make_rectangle that we did in class.
  5. Look at this image for your coordinates guidance
  6. If you have any questions, email me at dmeng@ayclogic.com

Details

Date:
September 18
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights