Easy_Flex

Untitled

Feb 29th, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. def greater_sum(alist, blist):
  2.     if sum(alist) > sum(blist) :
  3.         return alist
  4.  
  5.     else:
  6.         return blist
  7.  
  8.  
  9. print(greater_sum([1, 3, 5], [2, 4, 8]))
Add Comment
Please, Sign In to add comment