American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

10 AM – Intro To Python – Gamas

August 10 @ 10:00 am - 11:00 am

What I Did
  1. We learned how to create a turtle function house
  2. We learned about function to generate a sentence and add 4 numbers
Homework
  1. Create aug_10_function_hw.py
    1. Create a new function multiply_three_numbers, it has 3 parameters and inside the function it will multiple 3 parameters. This is very similar to add_four_numbers function which we did in the class.
    2. Create a new function cool_or_not_cool, it has 1 parameter (first_name) and inside the function if parameter value == “Karen” then it is print “Karen is not cool”. Otherwise it will print “<parameter value> is cool”. Example
      1. cool_or_not_cool(“Karen”) this will print “Karen is not cool”
      2. cool_or_not_cool(“Alyssa”) this will print “Alyssa is cool”
      3. cool_or_not_cool(“Gamas”) this will print “Gamas is cool”
  2. Create aug_10_draw_car.py
    1. Copy the rectangle, circle and triangle functions from your previous homework and then add the draw_car(x,y) function. the expected result would be like below

Details

Date:
August 10
Time:
10:00 am - 11:00 am
Verified by MonsterInsights