Wednesday, April 11, 2012

Removing repeating component in a list

I have a python data-structure as follows:



A = [{'abc': 'kjkjl'},{'abc': 'hjhjh'},{'abc': '78787'}]


How can I remove the 'abc' from A and make a new list:



B = ['kjkjl','hjhjh','78787']




No comments:

Post a Comment