From 6cebc952c3116d49eced5e41444647b63b214919 Mon Sep 17 00:00:00 2001 From: Satwik Kansal Date: Mon, 20 Jan 2020 14:23:20 +0530 Subject: [PATCH] Fix minor typo in the "is not" example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eff9403..ab26e5a 100644 --- a/README.md +++ b/README.md @@ -933,7 +933,8 @@ False #### 💡 Explanation - `is not` is a single binary operator, and has behavior different than using `is` and `not` separated. -- `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`. +- `is not` evaluates to `False` if the variables on either side of the operator point to the same object and `True` otherwise. +- 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`. ---