_string = "" if len(_string) <= 0: print "Empty String" else: print "Not Empty String" Output: Empty String
Leave a comment: