I'm trying to sum values in a dictionary that has strings for keys, and lists as the values.
The standard sum(d.values())
doesn't work.
d= {'a': [6,7,8], 'b':[30,-3, 5000,] 'c':[200.6], 'd':[2,2,2,2,2,2,2]}
When I use the sum(d.values())
I get:
TypeError: unsupported operand type(s) for +: 'int' and 'list'