Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created April 2, 2020 03:35
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/c4c8ed4f8f40a9c91c57ae792d998983 to your computer and use it in GitHub Desktop.
Save codecademydev/c4c8ed4f8f40a9c91c57ae792d998983 to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def exponents(bases, powers):
lst = [(bases**len(powers)) for number in numbers]
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