Skip to content

Chapter 36: Input and output

36.1 Input

input() in Python 3.x

input() in Python 2.x

File Input

Parsing command line

36.2 Output

Omitting newlines

Examples

File Output

Formatting