Looping inside print()
<p>I have a dictionary that contains 9 items, it's called users. Now would it be possible to do this, which is completely functional:</p>

<pre><code>for x in range (0, 9):
    print users[x]
</code></pre>

<p>In one line of code with something like</p>

<pre><code>print users[x for x in range (0, 9)]
</code></pre>

<p>That gives syntax error. So is it possible to do it this way or maybe I need to use lambda functions or something? Thanks</p>