I have a list of lists such that
a = [["append",5],["insert",7],["print",9,10]]
How can I remove the first value from each sublist within the list using map
and lambda function?
This is my code
m = map(lambda x : x.remove(x[0]), a)
And my output for list(m)
is [None, None, None]
Can anybody please help me understand why this is happening and how can the code be corrected? Thanks!!!