test = "hello world" if test is not None: print("test is not None") test2 = None if test2 is None: print("test2 is None")