Mission 1.2 - Printing an Output
The print statement evaluates each expression in turn and and writes the resulting object to standard output. If the object is not a string, it is first converted to a string using the rules for string conversions. The resulting string is then outputted.
A space is written before each object is written, unless the output system believes it is in the beginning of the line. This could happen when no characters have yet been written to standard output, when the last character is written as “\n”, or when the last write operation on standard output was not a print statement.
An “\n” character is written at the end, unless the print statement ends with a comma.
The print statement is used to print out math functions, plus operators, strings, etc.
Example:
>>> print( “Hello, World!”)
Hello, World!
>>> print 2*2
4
>>> print 4 + 5 + 6
15