python 3 is not None vs not code example Example: is not none python # To check if a variable is not None: if x is not None: # Do something