string = ""
if len(string) == 0:
print("empty")
my_str = ""
if not my_str:
print("empty")
else:
print("not empty")
#output: empty
my_string = ""
if my_string == "":
print(True)
else:
print(False)
# Remember if you have even a white space in the string, the output will be - False.
if not myString:
>>> A = ""
>>> A == ""
True
>>> A is ""
True
>>> not A
True