- This event has passed.
6PM- Intro To Python – Joshua
December 5, 2024 @ 6:00 pm - 7:00 pm
Today We Did:
- Drawing robot arms as a function
- How to draw a circle (turtle.circle())
- turtle_circle(radius)
- radius is the distance from the center of the circle all the way to the edge
- Drawing half, quarter, incomplete circles
- turtle.circle(radius, “90”) < ——- this will rotate it 90 degrees.
- Remember to experiment to get a shape
Homework:
In one new file, “December_2_Face”, do the following:
- Create a simple circular face with these components
- A whole circular face
- Two half circle eyes
- A rectangle smile that is slanted
- IF you are able to, create a function that makes the face called “create_face”
- Create a Left arm functions
- it should take in two variables, your x coordinate and your y coordinate like this def left_arm(x,y)
- at that x,y coordinate, it should draw a left arm
- In your left arm function, call two of your “rectangle” functions to build the arm
- it should take in two variables, your x coordinate and your y coordinate like this def left_arm(x,y)
email jwidjanarko@ayclogic.com for questions