Exercise: a Maze Model.

Design a data structure to represent a maze using dictionaries and lists. If possible, work with a partner.

Create an example instance, in a notebook, of a simple structure for your maze:

Make sure that your model:

Example data structure for cities and residents:

cities = [{'name': "London", "capacity": 8, "residents": ["Me","Sue"]},
 {'name': "Edinburgh", "capacity": 1, "residents": ["Dave"]},
 {'name': "Cardiff", "capacity": 1, "residents": []}]
len(cities[2]['residents'])

«  0

As we can see, there are currently no residents in Cardiff.

Next: Module - Control and Flow