8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 266b4c4 commit 9c2d09dCopy full SHA for 9c2d09d
docs/writing/style.rst
@@ -65,9 +65,9 @@ it is bad practice to have two disjointed statements on the same line of code.
65
66
.. code-block:: python
67
68
- print 'one'; print 'two'
+ print('one'); print('two')
69
70
- if x == 1: print 'one'
+ if x == 1: print('one')
71
72
if <complex comparison> and <other complex comparison>:
73
# do something
@@ -76,11 +76,11 @@ it is bad practice to have two disjointed statements on the same line of code.
76
77
78
79
- print 'one'
80
- print 'two'
+ print('one')
+ print('two')
81
82
if x == 1:
83
84
85
cond1 = <complex comparison>
86
cond2 = <other complex comparison>
0 commit comments