1# test continue within exception handler 2 3def f(): 4 lst = [1, 2, 3] 5 for x in lst: 6 print('a', x) 7 try: 8 if x == 2: 9 raise Exception 10 except Exception: 11 continue 12 print('b', x) 13f() 14