Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This program declares a function that accepts two list of numbers and returns the difference between the values of the first and the second list
- #function
- def sum_difference(list1, list2):
- print(sum(list1) - sum(list2))
- sum_difference([1, 2, 3], [1, 2, 4])
- sum_difference([1], [ ]) #Example (the two arguments must consist of two lists)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement