Here is my code:
import time as t print('hello', end=' ') t.sleep(1) print('hello', end=' ') t.sleep(1) print('hello', end=' ') t.sleep(1) My problem is that all the print commands are executed after the sleep commands, and that's not my intended output.
stdoutand likely it's not getting flushed.flushparameter toprint()in Python 3. If you addflush=True,printshould print immediately.