How can I overwrite a print output with another specific print output? For example:
print("Overwrite this line", end="\r")
print("I do not want to overwrite any line")
print("I want to overwrite the first line")
How can I overwrite the first
print statement with the third
print statement?
I want to replace the first line, with the third line. The second line should remain as it is.
In this code example, the first line would be overwritten by the second one, but the I do not want that. I want the first line would be overwritten by the third one