Quote

Given the positive integer ratio greater than 1, and the non-negative integer n, create a list consisting of the geometric progression of numbers between (and including) 1 and n with a common ratio of ratio. For example, if ratio is 2 and n is 8, the list would be [1, 2, 4, 8].

Associate the list with the variable geom_prog.

Associate the list with the variable geom_prog.

Okay, seems pretty straight forward. So I came up with:

geom_prog = [] i = 0 while i <= n+1: entry = geom_prog[i]*ratio geom_prog.append(entry)

So we have i set to zero as a counter for the index of the list. Then take that entry, multiply it by the ratio (supplied by MyProgrammingLab for testing hence why it's not declared in my code), and assign that total to entry, then write entry to the next index in geom_prog. rinse and repeat right?

Well according to MPL all I'm getting are null values.

So... what am I over looking here?