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.