- This event has passed.
6 PM – Intro To Python
July 25, 2020 @ 6:00 pm - 7:00 pm
- We reviewed 2nd quiz result.
- No homework next week.
- For students who stayed behind, please do the following homeworks:
- Create a function with no return value, “subtract1”
- It has 2 parameters: n1, n2.
- Inside the function subtract n1 with n2 and print the result.
- Call the function and pass 10 as first parameter and 2 as second parameter.
- Create a function with return value, “subtract2”.
- it has 2 parameters: n1, n2.
- Inside the function subtract n1 with n2 and return the result.
- Call the function and pass 10 as first parameter and 2 as second parameter.
- Capture the return value inside variable “subtraction”. Print the “subtraction” into the shell.
- Create a function with no return value, “convert_from_meter_to_centimeter1”
- It has 1 parameter: meter
- Inside the function convert the “meter” parameter into “centimeter” by multiplying “meter” with 100.
- print the result
- Call the function and pass 1 as parameter.
- Create a function with return value, “convert_from_meter_to_centimeter2”
- It has 1 parameter: meter
- Inside the function convert the “meter” parameter into “centimeter” by multiplying “meter” with 100.
- return the multiplication result
- Call the function and pass 1 as parameter.
- Capture the result value inside variable “centimeter”. Print the “centimeter” into the shell.
- Create a function with no return value, “subtract1”