Activity 01
Pair Programming: List Manipulation
Pairs create a list of class subjects and student names. They append new entries, remove outdated ones, sort alphabetically, and slice subsets. Partners alternate coding while the other observes and suggests improvements.
What is the difference between syntax, logic, and runtime errors?
Facilitation TipDuring Pair Programming: List Manipulation, circulate to ask pairs to verbalize their plan before typing to build strategic thinking.
What to look forPresent students with short Python code snippets. Ask them to identify whether each snippet uses a list or a tuple and predict the outcome if they attempt to modify an element. For example: 'my_list = [1, 2, 3]; my_list[0] = 5. What is the new list?' vs. 'my_tuple = (1, 2, 3); my_tuple[0] = 5. What error occurs?'