I\'m using comprehensions to minimize the code. I figured out how to make a comprehension for the list l, but I can\'t seem to figure out how to make a comprehension for dic