[docs] Documentation bug in 2.7.3 version 4.4 section
David Ceresuela
davidzgz123 at gmail.com
Mon Nov 12 18:03:05 CET 2012
Hello everyone!
In the
http://docs.python.org/2/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loopsthere
are two print statements that I think are not correct.
These are:
- print("Found an even number", num)
- print("Found a number", num)
The output should be:
>>> Found an even number 2
>>> Found a number 3
But instead I get:
>>> ('Found an even number', 2)
>>> ('Found a number', 3)
Proposed solution is to delete the parentheses:
Change
print("Found an even number", num)
to
print "Found an even number", num
That way the output I get matches the expected output
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20121112/ff4a48d2/attachment.html>
More information about the docs
mailing list