American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6PM – Intro to Python – Joshua Widjanarko

November 7 @ 6:00 pm - 7:00 pm

Today We Did:

  1. Reviewed the Quiz 2
  2. Introduced Turtle
    1. remember to import with import turtle
  3. How to put a background color
  4. How to put a draw with turtle
    1. penup() vs pendown()
    2. turtle.goto(x_coordinate, y_coordinate)
  5. How to fill a shape

In one new file, “October_7_turtle_basic_hw”, do the following:

Homework
  1. Create a new file “Nov30_Turtle_Basic_Homework.py”
  2. Create a new function “draw_rectangle”. One parameter: pen_color. Inside the function, draw a rectangle shape using turtle module. Call the function and pass any color to the function.
  3. Create a new function “draw_square”. One parameter: pen_color. Inside the function, draw a square shape using turtle module. Call the function and pass any color to the function
  4. Create a new function “draw_triangle”. One parameter: pen_color. Inside the function, draw a triangle shape using turtle module. Call the function and pass any color to the function.
  5. Create a new function “draw_octagon”. One parameter: pen_color. Inside the function, draw a triangle shape using turtle module. Call the function and pass any color to the function.
  6. Look at this image for your coordinates guidance

email jwidjanarko@ayclogic.com for questions

Details

Date:
November 7
Time:
6:00 pm - 7:00 pm
Verified by MonsterInsights