Skip to content

Commit 4a98105

Browse files
committed
1 + 2*3 and some other stuff
1 parent 28d5779 commit 4a98105

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

basics/getting-started.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ create strings by simply writing some text in quotes.
9999
>>>
100100
```
101101

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.
104104

105105
```python
106106
>>> "hello there"
@@ -183,6 +183,15 @@ and `)` also work the same way.
183183
>>>
184184
```
185185

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+
186195
Python also supports many other kinds of calculations, but most of the
187196
time you don't need them. Actually you don't need even these
188197
calculations most of the time, but these calculations are probably

0 commit comments

Comments
 (0)