[New-bugs-announce] [issue2724] Error in Python tutorial (http://docs.python.org/tut/node6.html)
Sandeep Sabnani
report at bugs.python.org
Wed Apr 30 10:47:48 CEST 2008
New submission from Sandeep Sabnani <sandeepsabnani at gmail.com>:
Section 4.4 on page http://docs.python.org/tut/node6.html has a for loop
which uses the range function. However, the displayed output of that
loop is not correct. I ran the same code and got the output as follows:
3 is a prime number
4 = 2 * 2
5 is a prime number
5 is a prime number
5 is a prime number
6 = 2 * 3
7 is a prime number
7 is a prime number
7 is a prime number
7 is a prime number
7 is a prime number
8 = 2 * 4
9 is a prime number
9 = 3 * 3
Can this be corrected in the tutorial as it can be confusing for a
python newbie!
Thanks!
----------
assignee: georg.brandl
components: Documentation
messages: 65996
nosy: georg.brandl, sandeepsabnani
severity: normal
status: open
title: Error in Python tutorial (http://docs.python.org/tut/node6.html)
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2724>
__________________________________
More information about the New-bugs-announce
mailing list