+ 1
Can anyone say how to sum up the item in dictionary in python.
3 Antworten
+ 4
d = {1: 100, 2:200}
print(sum(d.values()))
>>>
300
+ 1
Your question is quite unclear. Give us little more description. 
What thing you have to sum?
No in keys , no in value what !
+ 1
I have to sum up the numbers example: {'a':100, 'b':200, 'c':300} 
I have to sum these items in dictionary in python



