Skip to content

Instantly share code, notes, and snippets.

@89465127
Created April 29, 2013 18:56
Show Gist options
  • Save 89465127/5483820 to your computer and use it in GitHub Desktop.
Save 89465127/5483820 to your computer and use it in GitHub Desktop.
Printing to a single line in Python, in separate steps, flushing output.
from __future__ import print_function
import sys
import time
print('Executing...', end='')
sys.stdout.flush()
time.sleep(2)
print('Done.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment