American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Python

July 25, 2020 @ 6:00 pm - 7:00 pm

  1. We reviewed 2nd quiz result.
  2. No homework next week.
  3. For students who stayed behind, please do the following homeworks:
    1. Create a function with no return value, “subtract1”
      1. It has 2 parameters: n1, n2.
      2. Inside the function subtract n1 with n2 and print the result.
      3. Call the function and pass 10 as first parameter and 2 as second parameter.
    2. Create a function with return value, “subtract2”.
      1. it has 2 parameters: n1, n2.
      2. Inside the function subtract n1 with n2 and return the result.
      3. Call the function and pass 10 as first parameter and 2 as second parameter.
      4. Capture the return value inside variable “subtraction”. Print the “subtraction” into the shell.
    3. Create a function with no return value, “convert_from_meter_to_centimeter1”
      1. It has 1 parameter: meter
      2. Inside the function convert the “meter” parameter into “centimeter” by multiplying “meter” with 100.
      3. print the result
      4. Call the function and pass 1 as parameter.
    4. Create a function with return value, “convert_from_meter_to_centimeter2”
      1. It has 1 parameter: meter
      2. Inside the function convert the “meter” parameter into “centimeter” by multiplying “meter” with 100.
      3. return the multiplication result
      4. Call the function and pass 1 as parameter.
      5. Capture the result value inside variable “centimeter”. Print the “centimeter” into the shell.

Details

Date:
July 25, 2020
Time:
6:00 pm - 7:00 pm
Event Categories:
,