fork download
  1. f = lambda x: (x ** 2) - 27
  2. fd = lambda x: x * 2
  3.  
  4. a = 50
  5. while a > (a := a - f(a) / fd(a)):
  6. print(a)
Success #stdin #stdout 0.05s 9576KB
stdin
Standard input is empty
stdout
25.27
13.169230312623665
7.609732014284865
5.578910083156939
5.2092825345429645
5.196168970075266
5.19615242273298
5.196152422706632