S
S
Sergey Matkovsky2020-10-28 02:09:15
Python
Sergey Matkovsky, 2020-10-28 02:09:15

How to return a line in the console to the previous line?

I ran into such a problem, I need something like \n in python, just the other way around, I didn’t find anything on this topic on the Internet. Please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-10-28
@anitop

this is decided by the terminal specific escape sequences.
if you mean "do not newline after output", then the print function has such a parameter as end .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question