my_empty_string = '' # given the empty string a variable def check_empty(): if not my_empty_string: print("Empty") else: print("Not Empty") check_empty() # by George Kwabena
my_str = "" if not my_str: print("empty") else: print("not empty") #output: empty
if not myString: