American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

4 PM – Introduction to Python – Nathaniel Lee

May 8, 2021 @ 4:00 pm - 5:00 pm

  1. Today we:
    1. Finished learning about functions with return values
  2. Homework: Do the following problems below. These questions are also in the file named “May8_FunctionWReturnValuePractice.py”
    1. create a function named “multiply_me” that has two parameters: x, y
      in the function multiply the two values
      and return the two numbers being multiplied (product)

      get two numbers from the user and use add_me() to multiply these numbers
      print the result

    2. create a function named “inches_to_yards” with one param: inch
      in the function convert inches to yards and RETURN yards
      NOTE: there are 36 inches in a yard

      get user input for inches and pass it to the function when you call it
      call the function outside and print the result

If you have any questions, feel free to email me at nathaniel@ayclogic.com!

Details

Date:
May 8, 2021
Time:
4:00 pm - 5:00 pm
Event Category: