Output Console
The Output console of the Preview window in the Python configuration wizard displays messages from standard output (sys.stdout) and standard error (sys.stderr). By default, the console is collapsed. To expand/collapse it, use the corresponding button ( Expand or
Collapse) in the window's bottom right corner.
Examples
import sys, warnings
#output to stdout
print(sys.path[0])
sys.stdout.write(str(99) + '\n')
#output to stderr
warnings.warn("Error!")
try:
а = 10 / 0
except ZeroDivisionError as err:
sys.stderr.write(str(ZeroDivisionError))
Read on: Full API Description