- This event has passed.
6 PM – Intro To Python – Shawn
July 18, 2023 @ 5:00 pm - 6:00 pm
Today We Did
- Turtle review (last week):
- turtle.goto(x, y) — move to particular spot on screen
- turtle.fill(color) — fill shape with color
- turtle.penup(), turtle.pendown() — lift pen up and down
- turtle.color(color) — set color of outline
- turtle.bgcolor(color) — set background color
- turtle.speed(speed) — change speed of turtle
- more commands: https://www.pythonsandbox.com/docs/turtle
- Finished RobotBuilder
- Created draw_rectangle() function
- New turtle commands
- turtle.forward(distance) — move forward some distance the turtle is facing
- turtle.left(degrees), turtle.right(degrees) — rotate turtle left/right degrees
- turtle.setheading(degrees) — turtle.left() always relative to arrow facing right
- Drew several shapes (faces, polygon, letter a, circle)
Homework
- Keep modifying the file called
Jul18_ManyShapes.py
(in the google drive). Finish the happy face in the following picture (feel free to draw the rest as well): - Create your final project proposal following all the guidelines here: https://www.ayclogic.com/intro-to-python-final-project-criteria/. This should be a drawing of what your project will look like, using physical paper and pen/pencils. Upload a picture into the drive. Examples are below.
If you have questions, feel free to email szhuang@ayclogic.com