[EMAIL PROTECTED] wrote: > On May 2, 3:49 pm, Basilisk96 <[EMAIL PROTECTED]> wrote: >> A simple >> >> if s: >> print "not empty" >> else: >> print "empty" >> >> will do. > > How do you know that s is a string?
Seems like a fair assumption given the OP's question and example. -- http://mail.python.org/mailman/listinfo/python-list