Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The program accepts two lists of numbers and returns the list with the
- # grater sum
- # Creates the first list
- first = []
- # Creates the second list
- second = []
- # Function definiition
- def greater_sum(first, second):
- # This loop evaluates both lists and returns the list with the greater list
- if sum(first) > sum(second):
- print(list(first))
- else:
- print(list(second))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement