Activity 01
Pair Programming: Build a Dynamic Inventory List
Pairs write a Python script to create a shopping list, append new items, remove one via user input, and print the updated list. Test with sample data, then swap roles to extend with indexing access. Discuss efficiency gains over individual variables.
Differentiate between lists and tuples in Python and their appropriate uses.
Facilitation TipDuring Pair Programming: Build a Dynamic Inventory List, circulate and ask each pair to explain their design choices for mutable versus immutable data in the inventory system.
What to look forProvide students with two scenarios: one describing a shopping list and another describing the launch coordinates for a rocket. Ask them to identify which scenario is best represented by a list and which by a tuple, and to briefly explain why.