I\'m trying convert my list to dictionary in python. I have list l
l = [\'a\', \'b\', \'c\', \'d\']
and I want convert it to dictionary d
Use a dict comprehension:
d = {key: [] for key in l}