Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4637

Re: A very minute correction on PDF

From Terry Reedy <tjreedy@udel.edu>
Subject Re: A very minute correction on PDF
Date 2011-05-04 13:57 -0400
References <073456261C486944897A62516989111CACBC52EE7D@IN-MUM-MAIL2.corp.capgemini.com>
Newsgroups comp.lang.python
Message-ID <mailman.1161.1304531846.9059.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar


Thread

Re: A very minute correction on PDF Terry Reedy <tjreedy@udel.edu> - 2011-05-04 13:57 -0400

csiph-web