if x=='': print "Empty string" if not x: print "Empty string, provided you know x is a string"