Skip to content

Commit 3132cab

Browse files
Update 03-02-operators.md
1 parent 332624b commit 3132cab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

manuscript/03-02-operators.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ Python has the following major operators:
66

77
## Operator priority
88
When expressions containing more than one operators are evaluated, the operator priority is followed, it is just like the BODMAS (PEMDAS for Americans) rule of maths. Usage of `()` can override priority.
9-
```
9+
10+
```python
1011
>>> 3 * 2 + 20 - 46
1112
-20
12-
```
13-
```python
1413
>>> 3 * (2 + 20 - 46)
1514
-72
1615
```

0 commit comments

Comments
 (0)