Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created December 18, 2019 09:11
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/007c07b57ee9b8243ceac9678a89ce1c to your computer and use it in GitHub Desktop.
Save codecademydev/007c07b57ee9b8243ceac9678a89ce1c to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def exponents(bases, powers):
lst=[]
for i in len(bases):
for j in len (powers):
lst.append((bases[i]**powers[j]))
return lst
#Uncomment the line below when your function is done
print(exponents([2, 3, 4], [1, 2, 3]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment