Activity 01
Pair Programming: School Database Build
Pairs create a list of dictionaries for 5 students, each with name, class, and marks list. They write code to access and print the highest mark for a specific student, then update one mark. Share and test on shared screens.
Explain how nested data structures can represent more complex real-world data.
Facilitation TipDuring Pair Programming: School Database Build, ask students to sketch their nested structure on paper first before coding, ensuring both partners agree on the design.
What to look forPresent students with a sample nested data structure, for example, a list of dictionaries representing employees with their departments and salaries. Ask them to write down the Python code to find the salary of the second employee listed.