Q. How can you print to stderr?

A
print(file=sys.stderr)
B
print(stderr=True)
C
sys.print()
D
error_print()
Solution:

print(file=sys.stderr) directs output to the standard error stream.

Entri Contact Image

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

    [honeypot honeypot-100]