def list_dict(l):
 d = {}
 for i in l:
  d[i] = None
 return d

def list_dict ( l ) : d = { } for i in l : d [ i ] = None return d
return a dictionary with all items of l being the keys of the dictionary .