Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created April 2, 2020 05:12
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/3c20a2ccc6c2fa1252654da2de7c2820 to your computer and use it in GitHub Desktop.
Save codecademydev/3c20a2ccc6c2fa1252654da2de7c2820 to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def exponents(bases, powers):
new_lst = []
for base in bases:
for power in powers:
new_lst.append(base ** power)
return new_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