- This event has passed.
4 PM – Introduction to Python – Nathaniel Lee
May 8, 2021 @ 4:00 pm - 5:00 pm
- Today we:
- Finished learning about functions with return values
- Homework: Do the following problems below. These questions are also in the file named “May8_FunctionWReturnValuePractice.py”
- 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 - 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 yardget user input for inches and pass it to the function when you call it
call the function outside and print the result
- create a function named “multiply_me” that has two parameters: x, y
If you have any questions, feel free to email me at nathaniel@ayclogic.com!