Why doesn't this code work?

https://gist.github.com/007c07b57ee9b8243ceac9678a89ce1c Why is this function wrong? cuz i beleive it is very much similar to the solution.
def exponents(bases, powers):
new_lst =
for base in bases:
for power in powers:
new_lst.append(base ** power)
return new_lst

many thnx please answer me, this is driving me crazy cuz i am lost and confused with this list ■■■■.

What is the error message you are getting? You should read that and it will give you a hint. You are trying to iterate on an integer. len() returns a number for how long an list is. You should just iterate through the list itself.