File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ create strings by simply writing some text in quotes.
99
99
>> >
100
100
```
101
101
102
- String's can also be written using "double quotes" instead of 'single quotes'.
103
- This is useful when the string needs to contain single quotes.
102
+ Strings can also be written with "double quotes" instead of 'single
103
+ quotes'. This is useful when we need to put quotes inside the string .
104
104
105
105
``` python
106
106
>> > " hello there"
@@ -183,6 +183,15 @@ and `)` also work the same way.
183
183
>> >
184
184
```
185
185
186
+ You can also leave out spaces to show what's calculated first. Python
187
+ ignores it, but our code will be easier to read for people.
188
+
189
+ ``` python
190
+ >> > 1 + 2 * 3 # now it looks like 2*3 is calculated first
191
+ 7
192
+ >> >
193
+ ```
194
+
186
195
Python also supports many other kinds of calculations, but most of the
187
196
time you don't need them. Actually you don't need even these
188
197
calculations most of the time, but these calculations are probably
You can’t perform that action at this time.
0 commit comments