>>> secret='foo' >>> print 'got it' if secret=='foo' else 'try again' 'got it'