Open in CoCalc with one click!
from sys import stderr stderr.write('foo') stderr.flush()
foo
stderr.write('foo') stderr.flush()
sys.stderr.write('foo') sys.stderr.flush()
foo