Create a function that takes any number of functions as positional arguments. The function returns execution of function-arguments one by one. See example for better understanding (Let's call this function chain).
my_func = chain(lambda x: x + 2, lambda x: (x/4, x//4))
my_func(37)
It should return
(9.75, 9)
I tried to do something like:
def chain(x,*args):
for arg in args:
arg(x)
It is not working. Can't understand how to take a non function argument to this function (in example above 37).