mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Fix indentation in doc example.
This commit is contained in:
parent
46b4a5e51e
commit
e65cb190a6
1 changed files with 5 additions and 5 deletions
|
@ -19,14 +19,14 @@ example::
|
|||
>>> x = int(input("Please enter an integer: "))
|
||||
Please enter an integer: 42
|
||||
>>> if x < 0:
|
||||
... x = 0
|
||||
... print('Negative changed to zero')
|
||||
... x = 0
|
||||
... print('Negative changed to zero')
|
||||
... elif x == 0:
|
||||
... print('Zero')
|
||||
... print('Zero')
|
||||
... elif x == 1:
|
||||
... print('Single')
|
||||
... print('Single')
|
||||
... else:
|
||||
... print('More')
|
||||
... print('More')
|
||||
...
|
||||
More
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue