import time import os arr = ['.'] * 30 px = 1 def anim(arr): for n in range(30): print(arr[n],end="") print() while True: anim(arr) arr[px] = '#' arr[px-1] = '.' px = px + 1 time.sleep(.5) os.system("clear") time.sleep(.1)