In [7]:
for i in range(1, 30):
print(1 + 10 ** -i)
Use the decimal module if you need high precision
In [13]:
from decimal import *
getcontext().prec = 27
In [14]:
for i in range(1, 30):
print(Decimal(1) + Decimal(10) ** -i)