mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -61,7 +61,7 @@ they appear in the sequence. For example (no pun intended):
|
|||
::
|
||||
|
||||
>>> # Measure some strings:
|
||||
... words = ['cat', 'window', 'defenestrate']
|
||||
>>> words = ['cat', 'window', 'defenestrate']
|
||||
>>> for w in words:
|
||||
... print(w, len(w))
|
||||
...
|
||||
|
@ -445,7 +445,7 @@ boundary::
|
|||
... print()
|
||||
...
|
||||
>>> # Now call the function we just defined:
|
||||
... fib(2000)
|
||||
>>> fib(2000)
|
||||
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597
|
||||
|
||||
.. index::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue