Advertisement
Jamesbusayo

Untitled

Feb 28th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. def sum_difference(list1, list2):
  2.     return sum(list1) - sum(list2)
  3.        
  4.  
  5. print(sum_difference([1, 2, 3], [1, 2, 4]))
  6. print(sum_difference([4, 5], [2, 3, 6]))
  7. print(sum_difference([1], []))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement