Exercise: Occupancy Dictionary

Take your maze data structure. Write a program to print out a new dictionary, which gives, for each room’s name, the number of people in it. Don’t add in a zero value in the dictionary for empty rooms.

The output should look similar to:

{'bedroom': 1, 'garden': 3, 'kitchen': 1, 'living': 2}
{'bedroom': 1, 'garden': 3, 'kitchen': 1, 'living': 2}

Next: Module - Defining Functions