this is gold
I quite like this solution. It is brute-forceish but it's simplicity has charm.
Nice, I didn't know about this feature and learned it from Dan Bader's book :)
Well, you need to fix your cheese ;-)
Take a note that not all parameters need to be obligatory.
Traceback (most recent call last):
File "main.py", line 35, in
TypeError: my_very_own_split() missing 1 required positional argument: 'd'
Passes all the tests but getting stderror.... Please help
In fact, you can use __import__ to simplify the code
There aren't any tests for names that include underscores.
Thanks! I have to find a way to block it up someday.
But is it really an issue?
This comment is hidden because it contains spoiler information about the solution
You're amazing guys. I will have to find a way to block these too!
You know what? I agree with you. I've learned a lot in past two years and I have to say that now I would ban this code during code review.
It's the shortest, sure, but the best? If I saw this in production code I would be kinda miffed because the return function is indecipherable.
Agreed. It only worked with one of the two, and that should be better specified.