American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

9 AM – Indo – Intro To Python – Gamas

April 1, 2023 @ 9:00 am - 10:00 am

Today We Did
  1. We created draw_square function so we can reduce code duplication.
Homework
  1. Create 3 new files:
    1. April1_TurtleRectangleFunction.py
      1. Copy the rectangle codes from March25_TurtleBasic.py and create a function draw_rectangle(x,y, color) function.
      2. Call the function 5 times with different coordinates and different colors.
    2. April1_TurtleTriangleFunction.py
      1. Copy the rectangle codes from March25_TurtleBasic.py and create a function draw_triangle(x,y, color) function.
      2. Call the function 5 times with different coordinates and different colors.
    3. April1_TurtleOctagonFunction.py
      1. Copy the octagon codes from March25_TurtleBasic.py and create a function draw_octagon(x,y, color) function.
      2. Call the function 5 times with different coordinates and different colors.
  2. Above homework is very similar to how we did the draw_square function in the class. Hint: before creating the function, you first have to change the coordinate to start drawing from (0,0)

Details

Date:
April 1, 2023
Time:
9:00 am - 10:00 am
Event Categories:
,
Verified by MonsterInsights