I have this code:
delIndex = []
for a in range(0, 10):
if a not in found_index and len(found_index) > 0:
delIndex.append(a)
for index in sorted(delIndex, reverse=True):
del faces[index]
This code delete items who are not in the array found_index
Is there a way simplify the code by using a method that do this job or another thing?