a = [0.] * 10000000 b = [0.] * 10000000 def f(): result = 0. for i in range(0,10000000): result += a[i]*b[i] print(result) f()