The following are snippets of cursed code that I've seen used by others.
Ternary operator using tuples
result = (if_false, if_true)[conditional]
Flow control using NameError
try:
value_that_may_or_may_not_be_defined
# "if" block
except:
# "else" block