Skip to content

Commit dc9ea11

Browse files
committed
Rewording
1 parent 3e25b78 commit dc9ea11

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

‎docs/python-tutorial/chapters/06-operators-pt01.md‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ print(3.2 > 9)
5454

5555
Running this will give us the following output: ```text False True False ```
5656

57-
This reads almost like plain English! 1 is not greater than 2, hence it returns and prints out
58-
`False`. 20 is larger than 1, which results the output being `True`, and so on.
57+
This reads almost like plain English! 1 is not greater than 2, hence it returns `False` and prints
58+
it out. 20 is larger than 1, which results the output being `True`, and so on.
5959

6060
### Less Than Operator (`<`)
6161

@@ -321,16 +321,6 @@ print(minutes % 60) # leftover minutes
321321

322322
So 150 minutes is 2 hours and 30 minutes.
323323

324-
??? note "A common use of modulus"
325-
326-
Modulus is the standard way to check if a number is even or odd. Any even number divided by `2`
327-
leaves a remainder of `0`, while any odd number leaves a remainder of `1`:
328-
329-
```python
330-
print(8 % 2) # 0, so 8 is even
331-
print(9 % 2) # 1, so 9 is odd
332-
```
333-
334324
### Exponentiation
335325

336326
The `**` operator raises the left value to the power of the right value:

0 commit comments

Comments
 (0)