You have to write you own custom exception class:
A-Well-a everybody's heard about the bird!
Bird bird bird, b-bird's the word.
This comment is hidden because it contains spoiler information about the solution
Thanks! I'm still learning myself, but I'm glad my limited knowledge was able to help someone else. Keep learning and do great things!
8 months after you commented this and is still helping newbies like me. Thank you for sharing the little things that will make all become better coders.
Welp, I am dumb.
I think operator.itemgetter is better for readability but if you care about 10% improvements in speed, Python is not the right tool for the job.
Very elegant I like this. Much more efficient than my code. Thank you
What is false? Those links you post seem to confirm that itemgetter is faster?
That's actually been proven to be false. See here: