(Jan-30-2019, 05:37 PM)ichabod801 Wrote: Show us your current code. I'm guessing you need to unindent the print to get it out of the for loop, but I can't tell for sure without the latest code.
a = int(input("Give number a: ")) b = int(input("Give number b: ")) luck = list() for i in range(b+1): luck.append(a**i) print (luck)should i use "break" after luck.append(a**i) ??