mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +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: "))
|
>>> x = int(input("Please enter an integer: "))
|
||||||
Please enter an integer: 42
|
Please enter an integer: 42
|
||||||
>>> if x < 0:
|
>>> if x < 0:
|
||||||
... x = 0
|
... x = 0
|
||||||
... print('Negative changed to zero')
|
... print('Negative changed to zero')
|
||||||
... elif x == 0:
|
... elif x == 0:
|
||||||
... print('Zero')
|
... print('Zero')
|
||||||
... elif x == 1:
|
... elif x == 1:
|
||||||
... print('Single')
|
... print('Single')
|
||||||
... else:
|
... else:
|
||||||
... print('More')
|
... print('More')
|
||||||
...
|
...
|
||||||
More
|
More
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue