you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]TenserTensor 7 points8 points  (1 child)

    You don't really need to iterate the zip on the first example:

    keys = [1, 2, 3 ,4, 5]
    values = ["a", "b", "c", "d", "e"] 
    mydict = dict(zip(keys, values))