Python uses Exceptions to indicate errors. Each exception type indicates a particular type of error.
In [1]:
print x
In [2]:
blah blah
In [3]:
x+y))