mensanator at aol.com wrote: > On May 2, 3:49 pm, Basilisk96 <basilis... at gmail.com> 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.