Make dictionary from list with python [duplicate] May 14, 2023 by Tarik dict(x[i:i+2] for i in range(0, len(x), 2))