Python Notes and Examples

stdin, stdout, stderr

To get input from the user on stdin:

Printing to stdout:

Print to stderr:

See also help(print).

Note that you can write backspaces to stdout to overwrite what’s there:

and