American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Intro To Python – Gamas

April 20, 2022 @ 7:00 pm - 8:00 pm

Today We Do
  1. We learned about function with return value.
Homework
  1. Create a new python file Apr20_FunctionWithReturnValueHomework.py
  2. Copy codes from page 139.
  3. Also create a function called: convert_from_hour_to_second. One parameter: hour. Return the result which is the conversion from hour to second. There are 60 mins in one hour and 60 seconds in one min. So there are 3600 seconds in one hour. This is very similar to convert_feet_to_inch function which we did in the class. Call the function, get the return value and print the result.
  4. result = convert_from_hour_to_second(2)
    print(result) # 7200

Details

Date:
April 20, 2022
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights