def f(ham: str, eggs: str = 'eggs') -> str:
print("Annotations:", f.__annotations__)
print("Arguments:", ham, eggs)
return ham + ' and ' + eggs
In the above block of code which got from https://docs.python.org/3.5/tutorial/controlflow.html#documentation-strings
My question is about the -> str
in the above block of code. What does it do ?