Ask yourself 'what is the best practice?". Writing your own functions or using pre-build?
Also, ask yourself would you write your own function in 2kyu or 3kyu or use min() or max()?
Do you import something or write everything by yourself?
I think it's absolutely fine using pre-build functions, the more you know the better. If you didn't know it, fine, write your own, but then learn about it immediately after publishing your answer. Boom, next time you're using min().
Like for any kata, the question is to give the correct answer. Moreover this is an 8kyu, which means it is targetted to absolute beginners, who need to learn to use basic prebuilt functions too.
In this case I hope you never use any libary of python. Each libary and function is written by the very short list of python keywords.
As for Codewars:
It is a place to LEARN. I also use short and long answers depending on my mood.
your solution is.... intense
damn nice job
Ask yourself 'what is the best practice?". Writing your own functions or using pre-build?
Also, ask yourself would you write your own function in 2kyu or 3kyu or use min() or max()?
Do you import something or write everything by yourself?
I think it's absolutely fine using pre-build functions, the more you know the better. If you didn't know it, fine, write your own, but then learn about it immediately after publishing your answer. Boom, next time you're using min().
Like for any kata, the question is to give the correct answer. Moreover this is an 8kyu, which means it is targetted to absolute beginners, who need to learn to use basic prebuilt functions too.
This comment is hidden because it contains spoiler information about the solution
.format()
converts it automatically