When function with for loop is called it only returns on value from dict. : <p>I dont understand why this function - with for loop, only returns one value from a dict. when called:</p>

<pre><code>my_dict = {"key1": 2, "key2": 3, "key3": 4}


def fun():
    for x in my_dict:
        return my_dict[x]

var = fun()
print var
</code></pre>

<p>How to make it return all the values that the loop produces? I know there are smarter ways, but im very new to Python and trying to understand how it functions.</p>
