I was trying to make a code like this
def no(t=.001):
print("N", end='')
for i in range(1000):
print('o', end='')
time.sleep(t)
print()
So that when I call no()
I would print a long "Nooooo...", waiting some time between each 'o'.
What happens instead is that the function halts, for the whole total time (1 second with the default argument), then prints the whole list.
Is this intended? And if not how should I obtain my intended effect?