The first time I saw itemgetter(), I did what I’d normally do when I come across a new tool. I looked up the docs, opened a REPL, and explored a bit.
And my reaction at first was: “So what?! This tool doesn’t do anything I couldn’t already do with other features in Python.”
So, why does itemgetter() exist?
But, before answering this question, let’s answer a more basic one…What Does itemgetter() Do?
thepythoncodingstack.com
thepythoncodingstack.com
