Lets take dictionary
r = {u’a’: ‘john’, u’b’: ‘ABA Design House , Developing Minds Foundation , Food Network South Beach Wine & Food Festival’, u’c’: ‘give’}
I want to convert it to:
r = {u’a’: ‘john’, u’b’: [‘ABA Design House’, ‘Developing Minds Foundation’, ‘Food Network South Beach Wine & Food Festival’], u’c’: ‘give’}
Use in-built method split()
In case you are uncomfortable with the leading/trailing spaces use the strip() method after you split