Print in single line in python using map() function
<p>I want to read an integer, and without using any string methods, I want to print something like this using the <code>map()</code> function:    </p>

<pre><code>123..N  
</code></pre>

<p>For Example:  </p>

<pre><code>N:5  
output:12345  
</code></pre>

<p>And not:</p>

<pre><code>1  
2  
3  
4  
5
</code></pre>

<p>I have already read the following answer, which is not what i want. i want to use map() function which is not used in the answer given below    </p>

<p><a href="http://stackoverflow.com/questions/3249524/print-in-one-line-dynamically">Print in one line dynamically</a></p>

<p>you can try this on python 2:</p>

<p>from <strong>future</strong> import print_function</p>

<p>map(lambda y:print (y,end=""),[x for x in range(1,int(input())+1)])</p>

python python-2.7 python-3.x