Mutiplication of n functions

I want to write a function in Python that returns the multiplication of n functions (f1(x) * f2(x) * f3(x) * ... * fn(x)).

I was thinking in something like:

def mult_func(*args):
    return lambda x: args(0)(x) * args(1)(x) ...

but I don’t know exactly how to loop through the n functions in args.

Thank you.


Source: New Questions

Leave a Reply