string = "" if len(string) == 0: print("empty")
my_str = "" if not my_str: print("empty") else: print("not empty") #output: empty
if variable: # code goes here...
if variable: etc.