So I'm iterating over items in a list in this way:
for virus in viruses:
do stuff
remove virus
If I had the index, I could just do del virus[i], and I could obviously tweak the code to do something like for index in range(0, len(viruses)), but that starts to make the code ugly pretty quickly for the other things I want to do within the for loop. Is there anyway I can just remove based on the name of the virus I am currently iterating over?