Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-41776: Revise example of "continue" in the tutorial documentation (
…GH-22234)

Revise example of "continue" in the tutorial documentation
(cherry picked from commit 7bcc645)

Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
  • Loading branch information
neerajsamtani authored and miss-islington committed Sep 15, 2020
commit 76e0c1e237982b7d6f503287357d48ed07d70489
10 changes: 5 additions & 5 deletions Doc/tutorial/controlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,15 @@ iteration of the loop::
... if num % 2 == 0:
... print("Found an even number", num)
... continue
... print("Found a number", num)
... print("Found an odd number", num)
Found an even number 2
Found a number 3
Found an odd number 3
Found an even number 4
Found a number 5
Found an odd number 5
Found an even number 6
Found a number 7
Found an odd number 7
Found an even number 8
Found a number 9
Found an odd number 9

.. _tut-pass:

Expand Down