I have a code that looks like this:
some_list = []
try:
while True:
... code that uses the list ...
except KeyboardInterrupt:
... code that modifies the list ...
after handling this exception, how do I return to executing this loop without nesting the loop?