Random grammar, spelling and content edits. (#3581)

[no important files changed]
This commit is contained in:
BethanyG
2023-12-27 06:02:10 -08:00
committed by GitHub
parent dfcb006eba
commit 185fbdfac9
17 changed files with 161 additions and 163 deletions

View File

@@ -415,7 +415,7 @@ def halve_and_quadruple(num):
print((num / 2) * 4)
return (num / 2) * 4
What the `print` calls revealed is that we used `/` when we should have used `//`, the [floor divison operator][floor divison operator].
What the `print` calls revealed is that we used `/` when we should have used `//`, the [floor division operator][floor division operator].
## Logging
@@ -487,7 +487,7 @@ AssertionError: divisor must not be 0
```
If we start reading the Traceback at the bottom (as we should) we quickly see the problem is that `0` should not be passsed as the `divisor`.
If we start reading the Traceback at the bottom (as we should) we quickly see the problem is that `0` should not be passed as the `divisor`.
`assert` can also be used to test that a value is of the expected type: