Activity 01
Pair Programming: Student Roster Manager
Pairs create a list to store class names, then add functions to append new students, access by index, and print the full list via a for loop. They test by simulating class changes and swap roles midway. End with sharing one efficient feature they added.
Analyze scenarios where using a list is more efficient than individual variables.
Facilitation TipDuring Pair Programming: Student Roster Manager, ask pairs to alternate roles every five minutes to keep both students engaged in debugging and writing.
What to look forPresent students with a short code snippet that declares a list and attempts to access an element. Ask: 'What will be printed if the code tries to access the element at index 5 in a list with only 3 items? Explain why.'