Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def greater_sum(list1,list2): #define a function called greater_sum with two arguments list1 and list2
- if sum(list1) > sum(list2): #if sum of list1 is greater than sum of list2
- print(list1)
- else: #else
- print(list2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement