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