I am trying to check each value in a List against every other value in the same List. If I identify something that meets some requirement, I add it to another List to be removed after this procedure is finished.
I have the following Pseudo-code:
for value1 in my_list:
for value2 in my_list:
if meets_requirements(value1, value2):
to_be_removed.append(value2)
But the naming conventions for the variables are difficult to assign or understand. So is there any alternative way to do the same? Can anyone help me with a simpler method?