There is the following code:
def for_list(list_numbers):
for n in list_numbers:
try:
....
except ...:
list_numbers.remove(n)
....
Question: when hitting an exception, the element must be deleted, then the next element of the list must be accessed. How to do it?