American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6PM- Intro To Python – Joshua Widjanarko

November 14 @ 6:00 am - 5:00 pm

Today We Did:

  1. Reviewed Homework
  2. Reviewed Turtle
    1. remember to import with import turtle
    2. How to put a background color
    3. How to put a draw with turtle
    4. penup() vs pendown()
    5. turtle.goto(x_coordinate, y_coordinate)
    6. How to fill a shape
  3. New Turtle Topics
    1. Improving our functions
    2. using turtle.right(90)
    3. using turtle.forward

 

Homework

  1. Create a new file “Nov_21_robot_drawing_Homework.py”
  2. You Have made a New function in class today rectangle.
    1. I want you to use that function to make a robot
    2. Use call the function rectangle multiple times, and make a robot
    3. Hint, the arm is two rectangle.
  3. 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

Details

Date:
November 14
Time:
6:00 am - 5:00 pm
Verified by MonsterInsights