Advertisement
Mofeoluwa

Untitled

Mar 8th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def sum_of_values(dict1,list1):
  2.     sagy = []
  3.     for i in list1:
  4.         sage = dict1.get(i)
  5.         sagy.append(sage)
  6.     go = sum(sagy)
  7.     print(go)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement