Well I have this code:
x = input('write something: ')
print("you wrote: ",x)
The result:
>>> write something: hello! #line 1
>>> you wrote: hello! #line 2
But I'd like that line 2 was written where is line 1, I mean, overwrite line 1.
I couldn't do that because input()
"ends" when user presses Enter which causes a new line on the console (the automatic new line described in the title).
Sorry if my English isn't good. Thanks!