Advertisement
OsahonE

Wk5_5

Apr 1st, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. def sum_difference(list1, list2):
  2.     return (sum(list1) - sum(list2))
  3.     #Above returns the difference of sum of list1 and list2
  4.    
  5. print(sum_difference([1, 2, 3, 4, 5], [6, 5, 7, 4, 8]))
  6. print(sum_difference([9, 8, 7, 5], [6, 5, 4, 3]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement