def f(a, b, c): return (a + b) / c a = 1.0 b = 2.0 c = 3.0 a, b, c = b, c, f(a, b, c) print(a, b, c)