Welp, I am dumb.
Seemingly the solutions are not re-validated; probably due to the high number of them
I guess this doesn't work anymore, because the functions are now called minimum and maximum.
Why is this even voted as best practice? This solution breaks fundamental DRY rule. Repeating code is never best practice.
@G_kuldeep exactly. Clever, right? I guess that's why 218+ people said it is clever. You are technically defining the function count but importing the function as count. This question is 8kyu if you know this function already. So basically, it just passes all the tests, because when count(any_example), it just returns the function Counter() from collections. Since the Counter function returns, when you import Counter as count, when you call on count, it passes all of the tests because the tests involve count.
Hope that helps in more detail? :)
Exactly what I done, not so hard.
This comment is hidden because it contains spoiler information about the solution
didn't worked at the first time
As it should, frankly.
THIS PROVES MY BRAIN IS BETTER THAN A COMPUTER!
Had exactly this (i thought) and didn't pass 1 (out of dozens of test ran)... weird...
the best way! )