- This event has passed.
6PM- Intro To Python – Joshua Widjanarko
November 14 @ 6:00 am - 5:00 pm
Today We Did:
- Reviewed Homework
- Reviewed Turtle
- remember to import with import turtle
- How to put a background color
- How to put a draw with turtle
- penup() vs pendown()
- turtle.goto(x_coordinate, y_coordinate)
- How to fill a shape
- New Turtle Topics
- Improving our functions
- using turtle.right(90)
- using turtle.forward
Homework
- Create a new file “Nov_21_robot_drawing_Homework.py”
- You Have made a New function in class today rectangle.
- I want you to use that function to make a robot
- Use call the function rectangle multiple times, and make a robot
- Hint, the arm is two rectangle.
- Put it in your folder by Wednesday
In case you missed it
def rectangle(color,x,y,length,width):
turtle.bgcolor(“#cf8dd6”)
turtle.color(color)
turtle.penup()
turtle.goto(x,y)
turtle.pendown()
turtle.begin_fill()
turtle.forward(length)
turtle.right(90)
turtle.forward(width)
turtle.right(90)
turtle.forward(length)
turtle.right(90)
turtle.forward(width)
turtle.end_fill()
email jwidjanarko@ayclogic.com for questions