To answer this question you will learn to:
Understand what a comprehensions is and the conditions for use.
Translate a loop into a comprehension.
Executed nested comprehensions.
Integrate comprehensions with a data structure.
Comprehensions
Practical - Comprehensions
Practical
Write a program to print out a new dictionary, which gives, for each room’s name, the number of people in it.
Exercise
Solution to the Maze Population Exercise
Solution