Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created August 16, 2020 21:51
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/880e92d5e74f78f005daffcfbc7d485f to your computer and use it in GitHub Desktop.
Save codecademydev/880e92d5e74f78f005daffcfbc7d485f to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
newlist=[]
def exponents(bases,powers):
for item in bases:
for i in powers:
powe=item**i
newlist.append(powe)
return newlist
#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