How to flush output of print in Python? Python tip: You can set flush=True for the print() function to avoid buffering the output data and forcibly flush it: print("I'm awesome", flush=True)
Python tip:
You can set flush=True for the print() function to avoid buffering the output data and forcibly flush it:
flush=True
print()
print("I'm awesome", flush=True)