Oct-05-2018, 09:41 AM
(Oct-05-2018, 08:40 AM)Student0 Wrote: Thanks for answer, but it didnt work :/Well, the code by nilamo:
Do you have other suggestions? :)
import functools import operator def func(x): return 1 + (1/(x**2)) print(functools.reduce(operator.mul, map(func, range(1, 19))))worked for me.
Output:3.482783207792457
I am trying to help you, really, even if it doesn't always seem that way