Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #A new program called sum_difference.
- #This program will return the difference between two list.
- def sum_difference(o, c):
- #the function have been defined.
- if sum(o) > sum(c):
- return sum(o) - sum(c)
- else:
- sum(c) - sum(o)
- #this determine the positive different between the two list o and c
- sum_difference([2, 3, 7, 9],[6, 0, 5, 6])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement