Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created April 2, 2020 05:28
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/7d71d7013036156ca7c98314c1715ff2 to your computer and use it in GitHub Desktop.
Save codecademydev/7d71d7013036156ca7c98314c1715ff2 to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def larger_sum(lst1, lst2):
sum1 = 0
sum2 = 0
for h in i:
sum1+=1
for j in k:
sum2+=1
if sum1 > sum2 or sum1 == sum2:
return sum1
else:
return sum2
#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