diff options
| author | 2020-07-14 10:03:07 -0400 | |
|---|---|---|
| committer | 2020-07-14 10:03:07 -0400 | |
| commit | 18e58ad1e040f3997a23308d916eed7d474a5dd6 (patch) | |
| tree | 7f9fa17eab2bff7687fa37c3dfbf1d15c3e995b1 | |
| parent | Update or-gotcha.md (diff) | |
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 2dc1410ad..cbb64c276 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.") ``` -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_. +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 |