Why print command gives a new line even though there is no data to print
<p>Just typing <code>print</code> only gives newline in python.  Typing <code>print</code> without the brackets in 3.x will also gives a newline. Why?</p>

<p>In Python 3, print is now a function. It will print a new line character at the end of your statement. </p>

<p>If you don't specify an "end" it will by default use a new line character. </p>

<p>You can prevent this by doing something such as:</p>

<pre><code>print("hello world", end="")
</code></pre>

python python-2.7 python-3.x