title: One-line for loop as a function argument
body: <pre><code>def strange_syntax(stuff):
      return ".".join(item for item in stuff)
  </code></pre>
  
  <p>How (and why) works this code? What happens here? Normally I can't use this syntax. Also, this syntax doesn't exist if it's not inside some <em>function</em> as an argument.</p>
  
  <p>I know, I could do the same with:</p>
  
  <pre><code>def normal_syntax(stuff):
      return ".".join(stuff)
  </code></pre>