1# basic exceptions
2x = 1
3try:
4    x.a()
5except:
6    print(x)
7
8try:
9    raise IndexError
10except IndexError:
11    print("caught")
12