How to flush output of print function?

685    Asked by DylanPEREZ in Data Science , Asked on Jul 15, 2021

I want to output to the screen using print function in Python, How can I do it?

Answered by Sunita pandey

Just use this to solve python print flush:

import sys
sys.stdout.flush()
Cheers..!!

Your Answer

Interviews

Parent Categories