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.
I went the route of having a separate function to multiply the digits as well. I think it's a little cleaner. Nice code!
Your multiply_digits function will return 1 instead of 0 when you pass n = 0 into it. It doesn't affect the result of the main function as you will never pass 0 into it since your while loop would break if n was 0, but still not expected behavior.