User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

cs_lang:python:things-to-know:exceptions [2010/12/12 17:29] (current)
Line 1: Line 1:
 +<code python>
 +>>>​ a
 +Traceback (most recent call last):
 +  File "<​stdin>",​ line 1, in <​module>​
 +NameError: name '​a'​ is not defined
 +<code python>
 +>>>​ 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)