Here's something simple I thought I would get away with:
foo = True
print('bar') if foo else pass
Which produces:
SyntaxError: invalid syntax
Of course I can just replace pass with None and it will work. I'm just curious: Why doesn't pass work?