This is  a simple way to do it i think

s=hello

>>> if(len(s)==0):
...     print "Empty"
... else:
...     print s
...
hello

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to