I want to get input and then print the output on that same line. This attempt doesn't work.
while True:
op = input("Input: ")
print("\tOutput: " + op)
The output looks like this:
Input: a
Output:a
Input: cat
Output cat
Input: 32
Output: 32
I would like it to look like this:
Input: a Output: a
Input cat Output: cat
Input: 32 Output: 32
Is this possible in Python? It would require overwriting a line of output, but I don't know whether it's possible, or how to do it.