Two variable dictionary comprehension
Gregory Ewing
greg.ewing at canterbury.ac.nz
Mon Apr 3 19:22:40 EDT 2017
Deborah Swanson wrote:
> I'll admit that both dictionaries and comprehensions are still a little
> bit fuzzy to me, especially when I get away from the common usages. This
> could be a good exercise to clarify some of the fuzzy areas.
If you're fuzzy about dictionaries in general, it might be a
good idea to concentrate on that for now and come back to
comprehensions later. They're something of an advanced topic;
anything you can do with a comprehension can also be done
in more fundamental ways.
--
Greg
More information about the Python-list
mailing list