diff options
| author | 2020-07-16 16:38:45 +0200 | |
|---|---|---|
| committer | 2020-07-16 16:38:45 +0200 | |
| commit | 26317fcc1f4f20e2800ece0d8f94235898aa8f11 (patch) | |
| tree | 42f53cf46576f14e17ff804c103c1877631f8715 | |
| parent | Merge pull request #1045 from python-discord/bug/980/fuzzy-processing (diff) | |
| parent | Merge branch 'master' into patch-1 (diff) | |
Merge pull request #1046 from ItsCinnabar/patch-1
Update or-gotcha.md
| -rw-r--r-- | bot/resources/tags/or-gotcha.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/resources/tags/or-gotcha.md b/bot/resources/tags/or-gotcha.md index 00c2db1f8..d75a73d78 100644 --- a/bot/resources/tags/or-gotcha.md +++ b/bot/resources/tags/or-gotcha.md @@ -3,7 +3,7 @@ When checking if something is equal to one thing or another, you might think tha if favorite_fruit == 'grapefruit' or 'lemon': print("That's a weird favorite fruit to have.") ``` -After all, that's how you would normally phrase it in plain English. In Python, however, you have to have _complete instructions on both sides of the logical operator_. +While this makes sense in English, it may not behave the way you would expect. In Python, you should have _[complete instructions on both sides of the logical operator](https://docs.python.org/3/reference/expressions.html#boolean-operations)_. So, if you want to check if something is equal to one thing or another, there are two common ways: ```py |