American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Python – Darin

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

What We Did Today:

  1. Reviewed how to create shapes on turtle using turtle.goto(x, y)
  2. Learnt how to use turtle.forward()
    Learnt how to use turtle.right() and turtle.left()
  3. Learnt how to create a square using turtle.forward() and turtle.left() in a for loop
  4. Learnt how to create many squares using a function that uses turtle.forward() and turtle.left() in a for loop

Homework:

Create a new file called Nov30_TurtleFunctionsHW.py and submit it into the google drive when finished:

You will create triangles by calling a function that takes 2 parameters.

  1. Create a function named makeTriangle that takes in 2 parameters, x and y, which are used as the starting point for the triangle.
  2. Start by making a triangle first without a function, and then once that works, put that code into a function.
  3. Refer to the most recent class notes on how we made the square.

If you have any questions, email me at ddjapri@ayclogic.com!

Details

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