a simple understanding of the list and range( -1- the upper bound is not reached):
>>> [10**i for i in range(-10,-1)]
[1e-10, 1e-09, 1e-08, 1e-07, 1e-06, 1e-05, 0.0001, 0.001, 0.01]
for a lazy assessment, just replace []with ()to instead create an understanding of the generator:
(10**i for i in range(-10,-1))
source
share