Once we are allowed to use built-in functions, the code becomes much more concise and easier to understand!
def larger_sum(L1, L2):
return L1 if sum(L1) >= sum(L2) else L2
Once we are allowed to use built-in functions, the code becomes much more concise and easier to understand!
def larger_sum(L1, L2):
return L1 if sum(L1) >= sum(L2) else L2