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 has been reported as abusive
Thanks for sharing, i didn't know theres built in function for this case in math Libraries
This is truly the best practice.
For some reason, when I tried to use the numpy solution, it passed the initial test, but failed the actual test. I did it the more drawn out method (for loop) to pass and then looked at the other solutions. I saw "import math" suggested, and so tried it with that approach, which worked. I wonder why numpy method didn't work for me...
so wholesome
No, you can, but use spoiler flag, so it doesn't show in the home page to people that hasn't solved the kata yet.
I am new to Codewars solutions thread... Should I not post under other peoples solution? 😅
spoiler
This comment is hidden because it contains spoiler information about the solution
wait what -
Don't worry prod (short for product) was added in version 3.8 of python, so it might not be included in older tutorials
Ooooh, tfw you don't know enough methods in Python...