Activity 01
Pair Coding: Method Match-Up
Pairs receive a list of student scores and tasks like appending new scores, inserting at positions, removing fails, and sorting. They write code, run it in IDLE, and predict outcomes before execution. Switch roles after each method to discuss changes.
Differentiate between methods that modify a list in-place and those that return a new list.
Facilitation TipDuring Pair Coding: Method Match-Up, sit with each pair and ask them to read the documentation aloud before coding so they practice reading technical text.
What to look forProvide students with a pre-defined list of numbers, e.g., `my_list = [15, 8, 22, 5]`. Ask them to write down the Python code to: 1. Add the number 30 to the end. 2. Insert the number 10 at the beginning. 3. Find the sum of all elements. 4. State whether the `append` and `insert` operations changed the original list.