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>Because the default parameter in print is \n for the end, 
though if you pass parameter for print end variable as \t or space , then you can see the same ! </p>

<p>But it works 2.7 and above!</p>

python python-2.7 python-3.x