So I have this code and I have no idea how to run it in only one line by just overwriting the previous output if you know what I mean. Here is the code:
import time
signs = ["|", "/", "-", "\\"]
while True:
for i in range(4):
print("\r" + signs[i].format(i))
time.sleep(1)
I would be very pleased if you could help me