American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Python – Darin

November 16, 2023 @ 6:00 pm - 7:00 pm

What We Did Today:

  1. Reviewed how to use the t.goto() function, the idea behind the x and y graph, and how to create basic shapes using t.begin_fill() and t.end_fill(), and using t.penup() and t.pendown().

Homework:

For those of you who haven’t done the previous homework, try to create one shape for each of them, and play around with using t.goto(), t.begin_fill() and t.end_fill(), and t.penup() and t.pendown() to make shapes one at a time before putting them into the function.

  1. In the file “Nov9_Turtle4ShapesHomework.py”
  2. Create a new function “draw_rectangle”. 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”. 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”. 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”. 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 shape building guidance

 

For those of you done with the homework above, make a robot figure with a head, body, arms and legs. Add some squares for artistic effect. Make the robot have different colors.

Notes:

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

Details

Date:
November 16, 2023
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights