Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4645bb6

Browse files
committed
Fix indentation in doc example.
1 parent 65162a7 commit 4645bb6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/tutorial/controlflow.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ example::
1919
>>> x = int(raw_input("Please enter an integer: "))
2020
Please enter an integer: 42
2121
>>> if x < 0:
22-
... x = 0
23-
... print 'Negative changed to zero'
22+
... x = 0
23+
... print 'Negative changed to zero'
2424
... elif x == 0:
25-
... print 'Zero'
25+
... print 'Zero'
2626
... elif x == 1:
27-
... print 'Single'
27+
... print 'Single'
2828
... else:
29-
... print 'More'
29+
... print 'More'
3030
...
3131
More
3232

0 commit comments

Comments
 (0)