Month 8 of 12
Sets and Dictionaries
Organising data with sets and with keys and values. This is Month 8 of the 12-month Brolly Python course for kids aged 9 to 15, and it ends with a test and the project “Student Records Using Dictionaries”.
- 4 weeks
- 8 live classes
- a test and a project
8 classes in 4 weeks
The classes
2 live classes a week, in this order. Under each class is what it teaches.
Week 1
Introduction to Sets
- Class 1 of 8 · No. 57Introduction to Sets and Creating Sets
- Make a set with curly brackets or set()
- Know that a set keeps only one copy of each value
- Use len() and in with a set
- Class 2 of 8 · No. 58Adding and Removing Elements
- Add items to a set with add() and update()
- Remove items with remove() and discard()
- Build a set of unique answers in a loop
- Class 1 of 8 · No. 57Introduction to Sets and Creating Sets
Week 2
Set Operations
- Class 3 of 8 · No. 59Union of Sets
- Join two sets with union() and |
- Know that a union keeps one copy of shared items
- Combine many sets in a loop
- Class 4 of 8 · No. 60Intersection of Sets
- Find what two sets share with intersection() and &
- Find what is in one set but not the other with difference() and -
- Choose union, intersection or difference for a real problem
- Class 3 of 8 · No. 59Union of Sets
Week 3
Introduction to Dictionaries
- Class 5 of 8 · No. 61Introduction to Dictionaries, Keys and Values
- Store pairs of keys and values in a dictionary
- Look up a value by its key
- Know that keys are unique and values can be anything
- Class 6 of 8 · No. 62Accessing Dictionary Elements
- Read values with [ ] and with get()
- Give get() a default for missing keys
- List all the keys, values and pairs
- Class 5 of 8 · No. 61Introduction to Dictionaries, Keys and Values
Week 4
Working with Dictionaries
- Class 7 of 8 · No. 63Updating Dictionaries and Dictionary Methods
- Add a new pair and change a value by assigning to a key
- Remove pairs with pop() and del
- Count things with a dictionary
- Class 8 of 8 · No. 64Looping through Dictionaries
- Loop over the keys, values and items of a dictionary
- Print a dictionary as a neat table
- Filter and total values in a loop
- Class 7 of 8 · No. 63Updating Dictionaries and Dictionary Methods
End of the month
Revise, take the test, build the project
Step 1
Monthly revision
Everything from the month, before the test
Step 2
Month 8 test
60 minutes · 50 marks · 6 parts
- AMultiple Choice Questions
- BFill in the Blanks
- CFind the Output
- DFind and Correct the Error
- EPractical Coding
- FLogical Thinking
Month 8 project
Student Records Using Dictionaries
A program to store, search and update student records
After each live class, its examples and practice for your child's age open in the Brolly Python app.
on the year road
Where Month 8 sits in the course
The course is one road of 12 months. The months before this one are filled in, Month 8 is the gold stop, and the months still ahead are dashed.
- 1Month 1Introduction to Python
- 2Month 2Variables and Data Types
- 3Month 3Input, Output and Operators
- 4Month 4Conditional Statements
- 5Month 5Loops and Repetition
- 6Month 6String Operations
- 7Month 7Lists and Tuples
- 8Month 8Sets and Dictionaries
- 9Month 9Functions
- 10Month 10Advanced Python Basics
- 11Month 11Logical Thinking and Problem Solving
- 12Month 12Project Development
- Months 1 to 4
- Months 5 to 8
- Months 9 to 12
next step
See if the course suits your child
Book a free trial class, online or at our Hyderabad centre. A teacher will answer your questions, help you choose a batch and tell you the fees.