Logical AND question

Tor Iver Wilhelmsen tor.iver.wilhelmsen at broadpark.no
Thu May 13 12:38:13 EDT 2004


"3c273" <nospam at nospam.com> writes:

> >>> if s and t == '':
>  print "This doesn't work!"

This is really

if (s) and (t == '')

which evaluates to false since "if (s)" returns false for the empty
string.



More information about the Python-list mailing list