mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Issue #16015: Fix NameError doctest example in tutorial introduction.
This commit is contained in:
parent
05ee5817a1
commit
9bb56a66c5
1 changed files with 1 additions and 2 deletions
|
@ -94,8 +94,7 @@ A value can be assigned to several variables simultaneously::
|
||||||
Variables must be "defined" (assigned a value) before they can be used, or an
|
Variables must be "defined" (assigned a value) before they can be used, or an
|
||||||
error will occur::
|
error will occur::
|
||||||
|
|
||||||
>>> # try to access an undefined variable
|
>>> n # try to access an undefined variable
|
||||||
... n
|
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
File "<stdin>", line 1, in <module>
|
File "<stdin>", line 1, in <module>
|
||||||
NameError: name 'n' is not defined
|
NameError: name 'n' is not defined
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue