SyntaxFix
Write A Post
Hire A Developer
Questions
>>> dict(zip([1, 2, 3, 4], ['a', 'b', 'c', 'd'])) {1: 'a', 2: 'b', 3: 'c', 4: 'd'}
If they are not the same size, zip will truncate the longer one.
zip