x = None if x is None: print "x is None" else: print "x is not None"