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

A
Delays output
B
Immediate output without newline
C
Formats text
D
Ignores output
Solution:

end=” and flush=True ensure immediate output without a newline.

Entri Contact Image

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