- This event has passed.
6 PM – Intro To Python – Darin
February 20 @ 6:00 pm - 7:00 pm
Today We Do
- Learnt to use t.forward() and t.right() to create shapes instead of t.goto()
- Learnt how to use loops to simplify code
- Learnt how to make a polygon
- Learnt how to use functions to create shapes
- Learnt how to add function parameters for the shape creation
Homework
MAIN HOMEWORK:
- Continue on the same file called Feb20_RobotBuilder.py
- Create the head of the robot as shown below
- 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.
- Make the head, the eyes, as well as the pupils for the robot.
- See the image below for reference:
FOR EXTRA PRACTICE:
- Create a new file called Feb20_TurtleExtraPractice.py
- 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)
- Look at this image for your coordinates guidance:
Notes:
If you have any questions, email me at ddjapri@ayclogic.com