American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6:00 PM – Intro to Python – Darin

August 11 @ 6:00 pm - 7:00 pm

Today we did

  1. Learnt how to use turtle drawing.
  2. Learnt how to wrap everything into a function that makes drawing easier

Homework:

Submit into your google drive when you are done!

  1. In your file called Aug11_TurtleComplexFunctionsHW.py, do the following:
    # HW: Draw a shape with at least 4-5 rectangles

    # Create a function out of that shape that you can
    # duplicate anywhere

    “””
    Trick:

    1. Start with drawing without the complex function:
    drawRectangle(0, 0, 100, 20, “red”)
    drawRectangle(0, 0, 20, 100, “blue”)
    drawRectangle(-50, 0, 40, 20, “red”)
    drawRectangle(-20, 50, 20, 100, “purple”)

    note: set the first rectangle as (0, 0) for the x, y so
    it’s easier

    2. Replace the first rectangle with x and y, and
    add x and y for every other rectangle
    “”””

  2. Create your project proposal drawing following these guidelines: https://www.ayclogic.com/intro-to-python-final-project-criteria/

    Submit an image to the google drive here when you are done.

Notes:

You can reach me at ddjapri@ayclogic.com for any questions.

AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/

Class notes: https://drive.google.com/drive/folders/1EJ3L9sHx0pYuyJ9jnGX1o144Lki3lZWn?usp=sharing

Details

Date:
August 11
Time:
6:00 pm - 7:00 pm
Event Categories:
,