Skip to content

Commit 6cebc95

Browse files
authored
Fix minor typo in the "is not" example
1 parent bd7cd43 commit 6cebc95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,8 @@ False
933933
#### 💡 Explanation
934934
935935
- `is not` is a single binary operator, and has behavior different than using `is` and `not` separated.
936-
- `is not` evaluates to `False` if the variables on either side of the operator point to the same object and `True` otherwise. In this expression, `(not None)` evaluates to `True`, since `None` is is `False` in a boolean context, so the expression becomes `'something' is True`.
936+
- `is not` evaluates to `False` if the variables on either side of the operator point to the same object and `True` otherwise.
937+
- In the example, `(not None)` evaluates to `True` since the value `None` is `False` in a boolean context, so the expression becomes `'something' is True`.
937938
938939
---
939940

0 commit comments

Comments
 (0)