I am trying to make a python program that writes the follwing to a terminal:
Frame 1 -- Loading Frame 2 -- Loading. Frame 3 -- Loading.. Frame 4 -- Loading... Frame 5 -- Loading
This would all be a function so that it repeats itself. The one problem I am having is that I have no idea how to reset the number of dots to zero after they equal three. My current code is below, any suggestions would be nice.
import pickle
import time
from sys import stdout
stdout.write("Loading")
def loaddot():
stdout.write(".")
time.sleep(.5)
loaddot()
loaddot()