define function

PHOTO EMBED

Sat Jul 09 2022 22:30:02 GMT+0000 (Coordinated Universal Time)

Saved by @quaie #python

def f(ham: str, eggs: str = 'eggs') -> str:
    print("Annotations:", f.__annotations__)
    print("Arguments:", ham, eggs)
    return ham + ' and ' + eggs
content_copyCOPY

https://docs.python.org/3.5/tutorial/controlflow.html#documentation-strings