A list of functions



examples/decorators/functions_in_list.py
def hello(name):
    print(f"Hello {name}")

def morning(name):
    print(f"Good morning {name}")


hello("Jane")
morning("Jane")
print()

funcs = [hello, morning]
funcs[0]("Peter")
print()

for func in funcs:
    func("Mary")

Hello Jane
Good morning Jane

Hello Peter

Hello Mary
Good morning Mary