I have a python data-structure as follows:
A = [{\'abc\': \'kjkjl\'},{\'abc\': \'hjhjh\'},{\'abc\': \'78787\'}]
How can I remove the \'abc\' fr
If all the dicts in A only have one element, you can do this ...
>>> A = [{'abc': 'kjkjl'},{'abc': 'hjhjh'},{'abc': '78787'}] >>> B = [x.values()[0] for x in A] >>> B ['kjkjl', 'hjhjh', '78787']