How to make print() accept the user input in same line? : <p>When i  am tying to take user input in python then it is taking input in next line but I want ti to take input in same line. How to achieve that? </p>

<p>I am taking input like this</p>

<pre><code>print("Enter your name:",end=" ")
</code></pre>

<p>It is showing on console as</p>

<pre><code>Enter your name:
Ankit
</code></pre>

<p>but I want it as</p>

<pre><code>Enter your name:Ankit
</code></pre>
