I have a python data-structure as follows:
A = [{\'abc\': \'kjkjl\'},{\'abc\': \'hjhjh\'},{\'abc\': \'78787\'}]
How can I remove the \'abc\' fr
Given your list as
>>> A [{'abc': 'kjkjl'}, {'abc': 'hjhjh'}, {'abc': '78787'}]
You can do something like
>>> list(itertools.chain(*[x.values() for x in A])) ['kjkjl', 'hjhjh', '78787'] >>>