import sys print("hello") print("errorred", file=sys.stderr) # üñîçø∂é raise Exception("message")
hello
errorred
Exception: message
print('ok')
ok