Skip to content

Commit b45390e

Browse files
authored
Merge pull request #3381 from python-discord/nedbat-patch-1
A list is a better expression of the intent
2 parents cb4401b + 43b18c6 commit b45390e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/resources/tags/or-gotcha.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
1717
print("That's a weird favorite fruit to have.")
1818

1919
# ...or like this.
20-
if favorite_fruit in ('grapefruit', 'lemon'):
20+
if favorite_fruit in ['grapefruit', 'lemon']:
2121
print("That's a weird favorite fruit to have.")
2222
```

0 commit comments

Comments
 (0)