def func(n, b, y):
result = 0
for k in range(1, b+1):
for j in range(1, n+1):
result += (j**4-23*k**7)
for k in range(1, b+1):
result += ((71*y**3)**5-(56*k**3-y-y**2)**2)
result = ('%.2E' % result)
print(result)
return result
def main(n, b, y):
return float(func(n, b, y))
main(3, 5, -0.2)
def func(n, b, y):
result = 0
for k in range(1, b+1):
for j in range(1, n+1):
result += (j**4-23*k**7)
for k in range(1, b+1):
result += ((71*y**3)**5-(56*k**3-y-y**2)**2)
result = ('%.2E' % result)
print(result)
return result