[docs] Algorithm error

eric.takada at embraer.com.br eric.takada at embraer.com.br
Tue Sep 28 17:53:37 CEST 2010


Hi, 

in section "4.4 break and continue Statements, and else Clauses on Loops" 
there is an error in the example code. The "range" in "for x in range(2, 
n): " shall be changed to "range(1,n):" in order to produce the output 
described in the example, since "range[2,2]" produces a null result.

Regards,

Eric Takada

This message is intended solely for the use of its addressee and may 
contain privileged or confidential information. All information contained 
herein shall be treated as confidential and shall not be disclosed to any 
third party without Embraer?s prior written approval. If you are not the 
addressee you should not distribute, copy or file this message. In this 
case, please notify the sender and destroy its contents immediately.
Esta mensagem é para uso exclusivo de seu destinatário e pode conter 
informações privilegiadas e confidenciais. Todas as informações aqui 
contidas devem ser tratadas como confidenciais e não devem ser divulgadas 
a terceiros sem o prévio consentimento por escrito da Embraer. Se você não 
é o destinatário não deve distribuir, copiar ou arquivar a mensagem. Neste 
caso, por favor, notifique o remetente da mesma e destrua imediatamente a 
mensagem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20100928/c068c1f5/attachment-0001.html>


More information about the docs mailing list