from math import sin, radians
def fives(repeat: int) -> float:
repeated = 1 / int('5' * repeat)
value = sin(radians(repeated)) * (10 ** (repeat + 2))
return value
fives(18)Cut/paste that into your python repl, and make sure the lines are intact without the HN extra indents. Change the 18 to any int you want (except it overflows at 308... easy to fix, but not worth bothering).
It might be close to zero... but it's much more like 3.14... when you run it.