I have a dictionary in my python program, it looks like this:
cities = {'England' : ['Manchester'],
'Germany' : ['Stuttgart'],
'France' : ['Paris', 'Lyonn'],
'Italy' : ['Torino']}
Now I want to convert this dictionary in a form like this:
cities = {'England' : set(['Manchester']),
'Germany' : set(['Stuttgart']),
'France' : set(['Paris', 'Lyonn']),
'Italy' : set(['Torino'])}
Does anyone have any idea?