Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created April 2, 2020 04:39
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/3374df6347dcd6b25cb8930ddea866e9 to your computer and use it in GitHub Desktop.
Save codecademydev/3374df6347dcd6b25cb8930ddea866e9 to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def exponents(bases, powers):
lst = []
for base in bases:
for power in powers:
lst.append(base**len(str(power)))
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