mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Issue 21014: Use booleans instead of 0 and 1 in examples.
This commit is contained in:
parent
9381343948
commit
4ab532bbfe
2 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ before printing the first prompt::
|
|||
Continuation lines are needed when entering a multi-line construct. As an
|
||||
example, take a look at this :keyword:`if` statement::
|
||||
|
||||
>>> the_world_is_flat = 1
|
||||
>>> the_world_is_flat = True
|
||||
>>> if the_world_is_flat:
|
||||
... print("Be careful not to fall off!")
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue