Commit a350f0f9 authored by Georg Brandl's avatar Georg Brandl

Confirm that the prime example is actually correct. We get so many complaints...

Confirm that the prime example is actually correct.  We get so many complaints about a "buggy example" on docs@python, let us hope this cuts them in half at least.
parent a9c9b2c3
......@@ -156,6 +156,9 @@ following loop, which searches for prime numbers::
8 equals 2 * 4
9 equals 3 * 3
(Yes, this is the correct code. Look closely: the ``else`` clause belongs to
the :keyword:`for` loop, **not** the :keyword:`if` statement.)
.. _tut-pass:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment