def func(): value = "not-none" if value is None and value != "not-none": print("None")