title: How to print without a newline or space
body: <p>Example in C:</p>
  <pre class="lang-cpp prettyprint-override"><code>for (int i = 0; i &lt; 4; i++)
      printf(&quot;.&quot;);
  </code></pre>
  <p>Output:</p>
  <pre><code>....
  </code></pre>
  <p>In Python:</p>
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; for i in range(4): print('.')
  .
  .
  .
  .
  &gt;&gt;&gt; print('.', '.', '.', '.')
  . . . .
  </code></pre>
  <p>In Python, <code>print</code> will add a <code>\n</code> or space. How can I avoid that? I'd like to know how to &quot;append&quot; strings to <code>stdout</code>.</p>