[🐍PyTricks]: Different ways to test multiple flags at once in Python

Preview text: # Different ways to test multiple # flags at once in Python x, y, z = 0 , 1 , 0 if x == 1…

Dan BaderSaturday, Mar 14, 2026 at 12:00 PM EasternDrip
Dan Bader[🐍PyTricks]: Different ways to test multiple flags at once in Python
Subject
[🐍PyTricks]: Different ways to test multiple flags at once in Python
Preview text
# Different ways to test multiple # flags at once in Python x, y, z = 0 , 1 , 0 if x == 1…
From
mail@dbader.org
ESP
Drip
Sent
Sat Mar 14, 2026, 12:00 PM ET
Sent to
danbader.com, dbader.org
Size
28 KB
Images
2
Links
4, 2 of them buttons
Subject length
69 characters

Report this email

Sent just before and after

Mar 18, 2026 12:00 PM[🐍PyTricks]: The get() method on Python dicts and its "default" arg
Mar 17, 2026 12:00 PM[🐍PyTricks]: picking up the basics of Python was the easy part?
Mar 15, 2026 2:00 PMA path to "Python mastery"
Mar 15, 2026 12:00 PM[🐍PyTricks]: How to sort a Python dict by value
Mar 14, 2026 12:00 PM[🐍PyTricks]: Different ways to test multiple flags at once in Python (this email)
Mar 13, 2026 9:58 PMPython 4.0
Mar 13, 2026 9:30 PM[🐍PyTricks]: Merging two dicts in Python 3.5+ with a single expression

More from Dan Bader

All Dan Bader emails

Get the Black Friday insights

We're collecting every Black Friday email from more than 41,000 brands as it lands. Get what we find: who starts first, the biggest discounts, and the subject lines that stand out.

Free. You'll get a confirmation email first, and you can unsubscribe anytime.