[docs] Bug reporting in documentation

Avi Kapoor avi.kaps at gmail.com
Fri Nov 18 12:08:20 CET 2011


Sir,

I''ve started learning python 2.4 as its supports the other tools related
to my project.
Lately i found a bug on *Section 4.4 "break and continue Statements "*
*
*
*>>> for n in range(2, 10): *
*... for x in range(2, n): *
*... if n % x == 0: *
*... print n, 'equals', x, '*', n/x *
*... break *
*... else: *
*... # loop fell through without finding a factor *
*... print n, 'is a prime number'*
* *
The actual output when you perform on the shell is like this
*
*
*
3 is a prime number
4 equals 2 * 2
5 is a prime number
5 is a prime number
5 is a prime number
6 equals 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 equals 2 * 4
9 is a prime number
9 equals 3 * 3
*


it doesn't include 2 as its prime number !!

Suggestions are : Working on it currently...will intimate you soon
-- 
*With Regards
Avi Kapoor *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20111118/43b95894/attachment.html>


More information about the docs mailing list