FAQ
overflow

Great Answers to
Questions About Everything

QUESTION

I would like to force Python's print function to output to the screen.

{ asked by Walter Nissen }

ANSWER

import sys
sys.stdout.flush()

print by default prints to sys.stdout

References:

{ answered by CesarB }
Tweet