Challenge 7: Keys Matching in Multiple Dictionaries
In this challenge, you are required to find keys matching a given value from multiple dictionaries.
We'll cover the following
Problem Statement
Implement a find_students
function that receives the students
dictionary and an address, and returns a list with names of all students whose address matches the address in the argument. For instance, invoking find_students('Lisbon')
should return Anna and Peter. Also, note that the names should be printed in alphabetical order.
Input
A nested dictionary students
and address
Output
The keys matching the address
in the sorted order, i.e., the name of the students living in a particular area
Get hands-on with 1400+ tech skills courses.