this is my code :
a=[{'x':'aaa','b':'bbbb'},{'x':'a!!!','b':'b!!!'},{'x':'2222','b':'dddd'},{'x':'ddwqd','b':'dwqd'}]
and i want get every ‘x’ list like this :
['aaa','a!!!','2222','ddwqd']
so which is the best way to get this ,
use map ??
thanks
list comprehension: