mirror of https://github.com/python/cpython
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234)
Revise example of "continue" in the tutorial documentation
This commit is contained in:
parent
95a8a0e01d
commit
7bcc6456ad
|
@ -210,15 +210,15 @@ iteration of the loop::
|
||||||
... if num % 2 == 0:
|
... if num % 2 == 0:
|
||||||
... print("Found an even number", num)
|
... print("Found an even number", num)
|
||||||
... continue
|
... continue
|
||||||
... print("Found a number", num)
|
... print("Found an odd number", num)
|
||||||
Found an even number 2
|
Found an even number 2
|
||||||
Found a number 3
|
Found an odd number 3
|
||||||
Found an even number 4
|
Found an even number 4
|
||||||
Found a number 5
|
Found an odd number 5
|
||||||
Found an even number 6
|
Found an even number 6
|
||||||
Found a number 7
|
Found an odd number 7
|
||||||
Found an even number 8
|
Found an even number 8
|
||||||
Found a number 9
|
Found an odd number 9
|
||||||
|
|
||||||
.. _tut-pass:
|
.. _tut-pass:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue