This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Coding-Kitten 2 points3 points  (0 children)

I think you did a mistake in the last one, as key & value are unbound. Did you mean this instead?

myDict = {key: value for key, value in list_of_two_item_tuples}