American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Python – Darin

February 20 @ 6:00 pm - 7:00 pm

Today We Do

  1. Learnt to use t.forward() and t.right() to create shapes instead of t.goto()
  2. Learnt how to use loops to simplify code
  3. Learnt how to make a polygon
  4. Learnt how to use functions to create shapes
  5. Learnt how to add function parameters for the shape creation

Homework

MAIN HOMEWORK:

  1. Continue on the same file called Feb20_RobotBuilder.py
  2. Create the head of the robot as shown below
  3. Figure out how to connect the rectangles together by math, like what the starting point (the x and y coordinates) of the shape should be when trying to connect them.
  4. Make the head, the eyes, as well as the pupils for the robot.
  5. See the image below for reference:

 

FOR EXTRA PRACTICE:

  1. Create a new file called Feb20_TurtleExtraPractice.py
  2. Create all the images as shown below, but this time use functions the same way we created the makeRectangle function in class today (with the parameters)
  3. Look at this image for your coordinates guidance:

 

Notes:

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

Details

Date:
February 20
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights