American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Python OOP – Gamas

March 19 @ 5:00 pm - 6:00 pm

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

Details

Date:
March 19
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights