[New-bugs-announce] [issue33424] 4.4. break and continue Statements, and else Clauses on Loops

CH report at bugs.python.org
Thu May 3 23:07:20 EDT 2018


New submission from CH <joechenghao at gmail.com>:

range function second parameter is excluded. Hence for x in range(2, n): will not execute when n = 2, and "2 is a prime number" will never appear.
Moreover, might need a break in the else block too.

----------
messages: 316158
nosy: joesatriani
priority: normal
severity: normal
status: open
title: 4.4. break and continue Statements, and else Clauses on Loops

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33424>
_______________________________________


More information about the New-bugs-announce mailing list