Answers for "pros and cons of python flush print function"

1

pros and cons of python flush print function

from time import sleep

# output is flushed here
print("Hello, world!", end='', flush= True)
sleep(5)
print("Bye!!!")
Posted by: Guest on April-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language