In today's task i've got to implement the below equation, but im struggling with the final output.
This is what I've made so far:
import math
def f(x, y):
return ((x + y) / x)**2
summary = 0
sumw = 0
for j in range(1, 5):
sumw = 0
for k in range(1, 8):
sumw += f(j, k)
summary += sumw
print(summary)
OUTPUT:
343.97222222222223
but the final output is unfortunetaly 343.972223
What should I do in this case? Any ideas how to solve this one? Thanks in advance for any kind of help.

**2to the second last line.