Finding a sum in nested list using a lambda function
reduce can help
from functools import reduce
total = reduce(lambda accumulator,element:accumulator+int(element[1]), table,0)
One approach is to use a generator expression:
total = sum(int(v) for name,v in table)
sum(map(int,zip(*table)[-1]))
is one way to do it ... there are many options however
If you want to use lambda the following should solve it:
total = sum(map(lambda x: int(x[1]), table))