here is the code i wrote. my idea is put a number(between 0~9) at the end of x and square it and then see if it's smaller than 2 ,choosing the biggest
x = 1.4
for n in range(21):
next_num = [0,1,2,3,4,5,6,7,8,9]
candidate = []
for number in next_num:
if float(str(x)+str(number))*float(str(x)+str(number))<2:
candidate.append(number)
x = float(str(x)+str(max(candidate)))
print(x)
but the problem is i only get 1.414213562373 this much 13 digits i tried typing in bigger number in range but i only get this
thank you