Make dictionary from list with python [duplicate]

dict(x[i:i+2] for i in range(0, len(x), 2))

Leave a Comment