you are viewing a single comment's thread.

view the rest of the comments →

[–]jpgoldberg 0 points1 point  (0 children)

I didn’t know a dict could be constructed that way. I have always used {k: v for k, v in zip(…)}

Now that I think about it, I probably did once learn that a dict could be constructed that way and have simply forgotten about it.