Python has two ways to compare: python == # Checks if values are equal is # Checks if same object in memory For most comparisons, use ==. Use is mainly for None: python if x is None: print("x has no value") Why is None instead of == None?
It's faster and more idiomatic. Some objects can override == to behave unexpectedly, but is always checks identity. For everything except None and explicit identity checks, stick with ==.