This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sandeepsabnani
Recipients georg.brandl, sandeepsabnani
Date 2008-04-30.08:47:05
SpamBayes Score 0.047237586
Marked as misclassified No
Message-id <1209545263.37.0.933925653998.issue2724@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2008-04-30 08:47:56sandeepsabnanisetspambayes_score: 0.0472376 -> 0.047237586
recipients: + sandeepsabnani, georg.brandl
2008-04-30 08:47:48sandeepsabnanisetspambayes_score: 0.0472376 -> 0.0472376
messageid: <1209545263.37.0.933925653998.issue2724@psf.upfronthosting.co.za>
2008-04-30 08:47:39sandeepsabnanilinkissue2724 messages
2008-04-30 08:47:32sandeepsabnanicreate