Skip to content

Commit 4e66446

Browse files
committed
make snippet and text coherent in for-else section
the loop breaks if it finds a factor, and the else block catches primes, not the other way around
1 parent f29650d commit 4e66446

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

for_-_else.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ documentation:
6363
print n, 'equals', x, '*', n/x
6464
break
6565
66-
It outputs the prime numbers between 2 to 10. Now for the fun part. We
66+
It finds factors for numbers between 2 to 10. Now for the fun part. We
6767
can add an additional ``else`` block which catches the numbers which are
68-
not prime and tells us so:
68+
prime and tells us so:
6969

7070
.. code:: python
7171

0 commit comments

Comments
 (0)