Talk:Python Programming/Creating Python programs/Solutions

From Wikibooks, the open-content textbooks collection
Jump to: navigation, search

[edit] 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,"):

print "Hello,",
print "world!"
Personal tools
Namespaces
Variants
Actions
Navigation
Community
Print/export
Toolbox