I have a list of dictionaries that have the same keys within eg:

[{k1:'foo', k2:'bar', k3...k4....}, {k1:'foo2', k2:'bar2', k3...k4....}, ....]

I'm trying to delete k1 from all dictionaries within the list.

I tried

map(lambda x: del x['k1'], list)

but that gave me a syntax error. Where have I gone wrong?

Edit
Report