SyntaxFix
Write A Post
Hire A Developer
Questions
pop mutates the dictionary.
pop
>>> lol = {"hello": "gdbye"} >>> lol.pop("hello") 'gdbye' >>> lol {}
If you want to keep the original you could just copy it.