# Float arithmetic in a loop: a running sum, three million times. x, acc = 0.0, 0.0 for _ in range(3_000_001): acc += x * 2.0 x += 0.5 print(acc)