>>> a Traceback (most recent call last): File "", line 1, in NameError: name 'a' is not defined
>>> try: ... a ... except: ... print("'a' is not defined.") ... 'a' is not defined.