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 have these error when attempting...
"Joe's checking account is disabled.
Log
Raise a ValueError
Jeff doesn't have enough money.
Log
Raise a ValueError
Joe can't withdraw 50, he only has 40"
I tried different ways and I don't know how to enable Joe checking_account?
Very Nice Kata , I learnd a lot From It Ty .
Python: the random test assumes the class must have a public property named
balance
(or its getter), but it's not specified anywhere in the Kata description. The tests should not rely on the implementation.Fix: https://www.codewars.com/kumite/64b57ce627f2c91a8a97f07f?sel=64b57ce627f2c91a8a97f07f
OP solved it, closing
This statement -->
Raise a ValueError if there isn't enough money to withdraw
should be clear enough, not a kata issue!not a kata suggestion
Python: tests have dependencies between test cases,
Fixed tests
depend on the state created bySample tests
.Done.
I agree. I didn't understand what "check" was at first. After looking at the examples, I could see it was ACTUALLY just a money transfer with an account balance and authorisation check between the 2 people. After I realised that, I solved it in minutes.
As a non native English speaker, I agree with @blopezpi. And after looking at the docstrings of some of the solutions, others felt the need to clarify what this method does.
Hello,
My code passes all the tests except for these 3 errors:
Joe's checking account is disabled.
Jeff doesn't have enough money.
Joe can't withdraw 50, he only has 40.
When I attempt to set accounts to False, overdrawing accounts etc it all raise ValueError as instructed. Can anyone explain these test failures?
Very nice kata, but it's definitely not a 7 kyu one imo ;) (6 or 5 kyu I'd say)
The logic in the check() method seems to be wrong. Re-think with following questions
Follow the DRY (Don't Repeat Yourself) principle.That is why OOP was created.
All the very best.
This comment is hidden because it contains spoiler information about the solution
Loading more items...