How to check string is empty or not in python?

a = ""
#or
a = None
if not a:
print "a is not empty"  


No comments:

Post a Comment