fork download
  1. llist = [{'a':'foo', 'b':'bar', 'c':1}, {'a':'foo', 'b':'bar', 'c':2}, {'a':'foo', 'b':'bar', 'c':3}, {'a':'hui', 'b':'pizda', 'c':1}, {'a':'hui', 'b':'pizda', 'c':2}]
  2. lnew = llist[0]
  3. lnew['c'] = [n['c'] for n in llist]
  4. print(lnew)
Success #stdin #stdout 0.02s 9260KB
stdin
Standard input is empty
stdout
{'a': 'foo', 'b': 'bar', 'c': [1, 2, 3, 1, 2]}