Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
I like how beautiful and short your code is.
You can delete the second condition.
I thought the same as you, "What is the point of using already existing functions?". But it depends on what level you are in, if you are a beginner it is much useful and beneficial to do it from scratch, but if you have more experience you don't have to.
Actually you don't need to write that question mark and any character after it.
بارك الله فيك
That is a very clever solution.