def f(x): return 2*x - 3 def g(x): return -x + 5 x=0 while f(x) < g(x): x +=0.01 print(f'Losningen er x = {x:.3f}')