Talk:Python Programming/Creating Python programs/Solutions

Whitespace in solution 3
There seems to be a bit of inconsistency in the treatment of whitespace in these example. In the Fibonacci example, the comma at the end of the print statement results in spaces between adjacent items (1 2 3 5 8 etc.). So (at least on my system) the answer for example 3 should be as follows (with no whitespace after "Hello,"):

Code Yields Error
The instructions state: (begin quote)

3. ''Re-write the original program to use two print statements: one for "Hello" and one for "world". The program should still only print out on one line.''

This can be accomplished by passing the end parameter in the first print statement, and telling it to finish the output with a space.

(end quote) This outputs the following error: