American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5:30 PM – Intro To Python – Richard

September 27, 2022 @ 5:30 pm - 6:30 pm

Today We Did:
  1. We continued building our robot, but this time making our code more re-usable.
  2. We learned how to call a function inside another function, and how to re-use parameters.

Code from class (Sep27_RobotArms.py): https://drive.google.com/drive/folders/1HS7Vf6hpZPBjnJQyanP75hIa6Krz4YsN

Homework:
  1. Finish implementing the left_arm function. But don’t just manually plug in numbers into the rectangle function. Call the rectangle function using the parameters of the left_arm function.
  2. Implement the right_arm function using the same idea as the left_arm function. Hint: They should be very similar.
  3. After you finish the left_arm and right_arm functions, call them both 3 times. Try to create the picture below:

Hint: You will need to call each function 3 times, but you need to modify one of the parameters.

Details

Date:
September 27, 2022
Time:
5:30 pm - 6:30 pm
Event Categories:
,
Verified by MonsterInsights