Activity 01
Inquiry Circle: Designing a Student Database
Groups must design a dictionary to store information about a student, including their name, age, and a list of marks. They then practice accessing specific values and adding new key-value pairs to their structure.
Explain the concept of key-value pairs in a dictionary.
Facilitation TipFor the Collaborative Investigation activity, assign each group a unique set of student attributes (name, roll number, subjects) so they build a mini-database together and later share their approach with the class.
What to look forProvide students with a pre-defined dictionary representing a student's profile (e.g., {'name': 'Rohan', 'roll_no': 101, 'marks': {'Math': 85, 'Science': 90}}). Ask them to write Python code to: 1. Print Rohan's roll number. 2. Add a new subject 'History' with marks 78. 3. Update the marks for 'Science' to 92.