Fun with the
Most Pythonistas learn early on that the
print(2>3) >>> False print(7+5==12) >>> True
However, I didn't know that
print(['output for False', 'output for True']['statement_to_evaluate'])
print(['no', 'yes'][2 > 3]) >>> no print(['Go back to math class', 'You know math!'][7 + 5 == 12]) >>> You know math!