« All Events
5 PM – Python OOP – Gamas
March 19 @ 5:00 pm - 6:00 pm
Today We Did
- We reviewed about function and List.
Homework
- Study and review mar_19_quiz.py file make sure you understand everything about function and list.
- Look at all of your existing files and make sure you understand how to do
- Create a new list
- Add new element to list
- Update new list
- print number of element inside list.
- Create a new function and call function
- Create a new function “calculate_area_of_rectangle”.
- It has 2 parameters: width and height.
- Inside the function multiply the two parameters
- print the multiplication result.
- Call the function with width as 10 and height as 2
- Create a new function “favorite_dance_style”
- It has 1 parameter: dance_style
- Inside the function print “I like ballet” if the parameter is equal to “ballet”
- Otherwise, print “I don’t like <dance_style>”
- Call the function like these
- favorite_dance_style(“ballet”)
- favorite_dance_style(“tango”)