On 5/4/2011 3:45 AM, Mehta, Pratik wrote:
For tutorialPython.pdf
Page 17 of the ebook (i.e. page 23 of pdf) under topic *3.2 First Steps
towards programming*
Under while loop, there should be a “,” after print b

Print b,

(a comma after ‘b’ is missing)

[You should mention versions when posting. Above is for 2.7]
The example is consistent as it is. A trailing comma would suppress the newline after each output, resulting in a single line of output.
1 1 2 3 5 8
While you could argue that the combined change would be better, the author of the example did not think so. This introductory chapter only uses the simplest form of the print statement.

--
Terry Jan Reedy


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to