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.
Your test results expect both the "add" and "take" methods to process a zero amount. In my opinion, a zero amount passed to either of these methods should throw a ValueError.
Safe(pin,balance)would seem to be better design ifbalanceis optional.If this is only intended to make the kata more difficult, please consider what you're doing there: passing artificially bad design off to your solvers to handle, when completely unnecessary.