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
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.
A nested dictionary
The keys matching the
address in the sorted order, i.e., the name of the students living in a particular area