1try:
2    raise ArithmeticError
3except Exception:
4    print("Caught ArithmeticError via Exception")
5
6try:
7    raise ArithmeticError
8except ArithmeticError:
9    print("Caught ArithmeticError")
10
11try:
12    raise AssertionError
13except Exception:
14    print("Caught AssertionError via Exception")
15
16try:
17    raise AssertionError
18except AssertionError:
19    print("Caught AssertionError")
20
21try:
22    raise AttributeError
23except Exception:
24    print("Caught AttributeError via Exception")
25
26try:
27    raise AttributeError
28except AttributeError:
29    print("Caught AttributeError")
30
31try:
32    raise EOFError
33except Exception:
34    print("Caught EOFError via Exception")
35
36try:
37    raise EOFError
38except EOFError:
39    print("Caught EOFError")
40
41try:
42    raise Exception
43except BaseException:
44    print("Caught Exception via BaseException")
45
46try:
47    raise Exception
48except Exception:
49    print("Caught Exception")
50
51try:
52    raise ImportError
53except Exception:
54    print("Caught ImportError via Exception")
55
56try:
57    raise ImportError
58except ImportError:
59    print("Caught ImportError")
60
61try:
62    raise IndentationError
63except SyntaxError:
64    print("Caught IndentationError via SyntaxError")
65
66try:
67    raise IndentationError
68except IndentationError:
69    print("Caught IndentationError")
70
71try:
72    raise IndexError
73except LookupError:
74    print("Caught IndexError via LookupError")
75
76try:
77    raise IndexError
78except IndexError:
79    print("Caught IndexError")
80
81try:
82    raise KeyError
83except LookupError:
84    print("Caught KeyError via LookupError")
85
86try:
87    raise KeyError
88except KeyError:
89    print("Caught KeyError")
90
91try:
92    raise LookupError
93except Exception:
94    print("Caught LookupError via Exception")
95
96try:
97    raise LookupError
98except LookupError:
99    print("Caught LookupError")
100