SyntaxFix
Write A Post
Hire A Developer
Questions
This is how I would do it.
for key in some_dict.keys(): if some_dict[key] == item_to_remove: some_dict.pop(key) break