« All Events
10 AM – Intro To Python – Gamas
August 10 @ 10:00 am - 11:00 am
What I Did
- We learned how to create a turtle function house
- We learned about function to generate a sentence and add 4 numbers
Homework
- Create aug_10_function_hw.py
- 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.
- 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
- cool_or_not_cool(“Karen”) this will print “Karen is not cool”
- cool_or_not_cool(“Alyssa”) this will print “Alyssa is cool”
- cool_or_not_cool(“Gamas”) this will print “Gamas is cool”
- Create aug_10_draw_car.py
- 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