DataDesk
All topics
Dictionaries — practice · DataDesk
DataDesk
How it works
Scenarios
Practice
For trainers
Pricing
Log in
Start free
Python
Dictionaries
Counting, grouping and looking things up.
0
/ 20 solved
All levels
Basic (7)
Intermediate (7)
Advanced (6)
All
To do
Solved
1
Look up a value
Basic
2
Count characters
Basic
3
Word frequency
Interview
Basic
4
Keys with a value
Basic
5
Total of values
Basic
6
Merge two dicts
Basic
7
Invert a dictionary
Basic
8
Group by first letter
Intermediate
9
Most frequent item
Interview
Intermediate
10
Sales by city
Intermediate
11
Sort a dict by value
Intermediate
12
Nested lookup
Intermediate
13
Two lists to a dict
Intermediate
14
Students per grade
Intermediate
15
Group anagrams
Interview
Advanced
16
First unique character
Interview
Advanced
17
Nested dict totals
Advanced
18
Flatten a nested dict
Advanced
19
Running inventory
Advanced
20
LRU-style recent items
Advanced