Hello, all. I just want to print the looped output on the display on the same line?
In Python 3.x, how can I do this in a simpler way?
I couldn't able to find the solution for python 3.x
i = 0
while i <10:
i += 1
## print (i) # python 2.7 would be print i,
print (i) # python 2.7 would be 'print i,'
Output:
1
2
3
4
5
6
7
8
9
10
But, I actually want is:
12345678910