Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created August 6, 2020 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/da413f3eec9dd0061ae89f25349086a9 to your computer and use it in GitHub Desktop.
Save codecademydev/da413f3eec9dd0061ae89f25349086a9 to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def larger_sum(first, second):
if sum(first) > sum(second):
return first
elif sum(second) > sum(first):
return second
else:
return first
#Uncomment the line below when your function is done
print(larger_sum([1, 9, 5], [2, 3, 7]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment