Skip to main content

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
Month 8
agecityAaravname12453a & b → {3}

8 classes in 4 weeks

The classes

2 live classes a week, in this order. Under each class is what it teaches.

  1. Week 1

    Introduction to Sets

    1. 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
    2. 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
  2. Week 2

    Set Operations

    1. 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
    2. 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
  3. Week 3

    Introduction to Dictionaries

    1. 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
    2. 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
  4. Week 4

    Working with Dictionaries

    1. 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
    2. 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
  5. End of the month

    Revise, take the test, build the project

    1. Step 1

      Monthly revision

      Everything from the month, before the test

    2. 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

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.

  • 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.