Answers for "convert a list to a dictionary with one key"

1

list to dictionary

b = dict(zip(a[::2], a[1::2]))
Posted by: Guest on September-27-2021

Code answers related to "convert a list to a dictionary with one key"

Python Answers by Framework

Browse Popular Code Answers by Language