Pass arbitrary number of functions
- As an advanced example we could even pass an arbitrary number of functions
examples/functions/run_these.py
def run_these(value, *functions): print(functions) for func in functions: print(func(value)) run_these("abc", len, lambda x: x+x, lambda y: f"text: {y}")
(<built-in function len>, <function <lambda> at 0x7fcb4e8bedc0>, <function <lambda> at 0x7fcb4e8bee50>) 3 abcabc text: abc