Python Quest

Track 6 · Lesson 8 of 12

Nested structures: records and JSON-like data

Work with lists of dictionaries, dictionaries of lists and deeper JSON-shaped data by chaining lookups step by step.

About 45 minIntermediate4 exercises

You will be able to

  • Represent records as a list of dictionaries and look up fields across them
  • Build and read a dictionary of lists
  • Chain index and key lookups to reach values deep inside JSON-like data
  • Handle missing fields in nested data without crashing

Included with a Formula Quest membership

It has 4 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.

View Formula Quest memberships

Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.