ignore = ['the', 'a', 'if', 'in', 'it', 'of', 'or']
for word in ignore:
    if word in ArtofWarCounter:
        del ArtofWarCounter[word]
How do I remove entries within a Counter object with a loop without invoking a RuntimeError?