Quiz
Python Dictionaries Quiz
Free beginner quiz on Python dictionaries: 15 questions on keys and values, get(), in, pop(), update(), loops and nested dictionaries. Instant answers.
Showing 1–10 of 58
Quiz
Free beginner quiz on Python dictionaries: 15 questions on keys and values, get(), in, pop(), update(), loops and nested dictionaries. Instant answers.
Quiz
…questions on int, float, str, bool, None, lists, tuples, dictionaries and sets, with instant answers.
Example
Dictionaries store data as key-value pairs. Fast access to data by key.
Example
Dictionaries can contain other dictionaries. Useful for complex data structures.
Example
Adding, changing and removing dictionary elements in Python.
Challenge
The launch code from "API response" worked on a ready-made dict, but the API really sends JSON text. Turn it into a dict with json.loads(), see what false and null become, then handle a response cut…
Example
Looping through keys, values or key-value pairs of a dictionary.
Challenge
Print the name, provider and status of a launch from a dict shaped like a launch-API response, then list every field the response has with items(), the way you'd inspect an API you haven't used…
Challenge
…the count, min, max and mean of a list of readings as one dict, then make it handle a pass with no data and round the mean, so any program can use the summary.
Challenge
Build a dict that maps every cargo ID to its record, so any item is found with one lookup instead of a search through the list, then answer a list of requests, including an ID that isn't on the…