- This event has passed.
5:30 PM – Intro To Python – Richard
September 27, 2022 @ 5:30 pm - 6:30 pm
Today We Did:
- We continued building our robot, but this time making our code more re-usable.
- 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:
- 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.
- Implement the right_arm function using the same idea as the left_arm function. Hint: They should be very similar.
- 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.