Question: To practice iterating over data Degree of Difficulty: Easy. Write a function called find_wards() which takes as parameter(s): A dictionary in the format of the

To practice iterating over data Degree of Difficulty: Easy. Write a function called find_wards() which takes as parameter(s): A dictionary in the format of the city database as described in Q1 This function should construct and return a list of all the different wards. Each entry in the list should be unique; in other words, dont add the same ward twice. For the input file you were given, the resulting list should be (though not necessarily in this order): Also, note that this function must not change the city database in any way.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!