Standard Input / Output
Standard output
print [>> fileobject,] expr [, expr]* [,]
- Appends a \n character, unless a trailing comma is specified.
- Adds a blank space before each expression, except at the beginning of a line.
Standard input
variable = input([prompt])
- Reads and evaluates the entire current line as an expression.
- Prints a prompt message (if specified).
string = raw_input([prompt])
- Reads the entire current line (omits trailing \n).
- Prints a prompt message (if specified).