Activity 01
Pair Programming: Shopping List Builder
Partners start with an empty list and use input() to add grocery items via append(). They access items by index to display prices, remove out-of-stock items with pop(), and slice for categories. Pairs test and swap code for feedback.
Differentiate between a single variable and a list/array for storing multiple values.
Facilitation TipBefore starting Pair Programming: Shopping List Builder, model reading a list index aloud to reinforce zero-based counting.
What to look forPresent students with a short Python code snippet that attempts to add an element to a list. Ask them to predict the output and explain why the code works or fails, focusing on list mutability and append operations.