Q. What is the effect of print(‘test’, flush=True)?

A
Delays output
B
Forces immediate output
C
Formats text
D
Ignores output
Solution:

flush=True forces the output to be written immediately, avoiding buffering.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!