list = [1,2,3,4,5,6] for elem in list: while True: try: do_something(elem) break except Exception: resolve_errors()
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 6, in <module> NameError: name 'do_something' is not defined During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./prog.py", line 9, in <module> NameError: name 'resolve_errors' is not defined