Meaning of a function "-> str"
<pre><code>def f(ham: str, eggs: str = 'eggs') -&gt; str:
    print("Annotations:", f.__annotations__)
    print("Arguments:", ham, eggs)
    return ham + ' and ' + eggs
</code></pre>

<p>In the above block of code which got from <b><a href="https://docs.python.org/3.5/tutorial/controlflow.html#documentation-strings" rel="nofollow noreferrer">https://docs.python.org/3.5/tutorial/controlflow.html#documentation-strings</a></b></p>

<p>My question is about the <code>-&gt; str</code> in the above block of code. What does it do ?</p>