User Tools

Site Tools


cs_lang:python:things-to-know:exceptions
>>> a
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'a' is not defined
>>> try:
...   a 
... except:
...   print("'a' is not defined.")
... 
'a' is not defined.
cs_lang/python/things-to-know/exceptions.txt · Last modified: 2010/12/12 17:29 (external edit)