Activity 01
Pair Programming: Parameter Practice
Pairs define three functions: one taking two numbers as parameters to return their product, one processing a list to return its sum, and one calculating average from multiple args. They write test calls with varied arguments and check outputs. Extend by chaining functions.
Differentiate between arguments and parameters in function calls.
Facilitation TipDuring Pair Programming: Parameter Practice, circulate and ask each pair to verbalize how the argument values map to the parameter names before running the code.
What to look forPresent students with a simple Python function definition and a function call. Ask them to identify the parameters in the definition and the arguments in the call. Then, ask them to predict the output if the function has a return statement.