Geometric progression
Initializes a list containing the numbers in the specified range where start and end are inclusive and the ratio between two terms is step.
- Use
range(),math.log()andmath.floor()and a list comprehension to create a list of the appropriate length, applying the step for each element. - Returns an error if
stepequals1. - Omit the second argument,
start, to use a default value of1. - Omit the third argument,
step, to use a default value of2.