Python "and" behavior

goldtech goldtech at
Fri Aug 14 02:36:59 CEST 2009

Could you explain or link me to an explanation of this? Been using
Python for a while but not sure I understand what's happening below.

>>> ss=1 and "fffff"
>>> ss
>>> ss=0 and "fffff"
>>> ss

More information about the Python-list mailing list