0

I am trying to make a loading type screen and I have tried multiple things. It always prints on the next line.

#attempt 1
print("loading"),
print("."),
print(".."),
print("..."),
#attempt 2
import time
print("loading", end=" ")
time.sleep(1)
print(".", end=" ")
time.sleep(1)
print("..", end=" ")
time.sleep(1)
print("...",)

I expect the output to be

Loading. ——————— Loading.. ——————— Loading... ———————

But it gives me an error message saying that it does not expect the

end=" "

0 Answers0