Python program to sum all the items in a dictionary
Link to all related video in the playlist "Python quick and dirty sample source code"
https://dailymotion.com/playlist/x74cx0
source code
a_dict = {'a' : 3, 'b': 4, 'c': 1, 'd' : 9}
print(sum(a_dict.values()))
Bình luận