mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
gh-122944: Fix incorrect prompt strings in the Python Tutorial (#122949)
In the REPL, top level comments are followed by a primary, not secondary prompt. Fix the places in the in the tutorial that use the latter.
This commit is contained in:
parent
1795d6ceba
commit
be90648fb2
4 changed files with 10 additions and 10 deletions
|
@ -501,8 +501,8 @@ together. For instance, we can write an initial sub-sequence of the
|
|||
as follows::
|
||||
|
||||
>>> # Fibonacci series:
|
||||
... # the sum of two elements defines the next
|
||||
... a, b = 0, 1
|
||||
>>> # the sum of two elements defines the next
|
||||
>>> a, b = 0, 1
|
||||
>>> while a < 10:
|
||||
... print(a)
|
||||
... a, b = b, a+b
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue