Đi đến trình phátĐi đến nội dung chính
  • 5 năm trước
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()))

Danh mục

📚
Học tập
Bình luận

Được khuyến cáo