Firstly I apologize for being an absolute rookie at programming. My idea was moving the ball (o) until the end of the track so the ball should update its position every iteration but not printing a new line for each position but in a single line so I can see the ball moves along the track. This is my code
track=['o','.','.','.','.','.','.','.']
blank='.'
for i in range(1,len(track)):
track[i]='o'
track[i-1]=blank
print(''.join(track))