Could use a list or dictionary comprehension but I don't really mind.