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.
Python 3.8 adds the walrus operator which allows you to assign the result of the sum in the if statement to a variable and reuse it later in the comprehension.
yes
I had similar but put mine into a list. Is this a generator?
This should be the top answer.
I think you're mis-reading the logs. There are two test cases right after each other, both of them are correct:
I think you're mis-reading the logs. There are two test cases right after each other, both of them are correct:
I'm not sure if all test case in python is properly
In my opinion result of this test case: A, 2, A, 9, 9 should not be 13
I have the same problem, and card was:
A
2
A
9
9
I use pritn to show what is in cards
Which cases do you find "not valid"?
Looks like he is inactive so this does not matter. That does not negate the fact some of the test cases are not valid "blackjack rule based" cases. Is should just be count the cards in the hand using some concepts from blackjack. Some of the edge cases are not cool.
Not a bad challenge. New to this. Easy to solve if output of most_common() would have been answer. Took me two days to get all the edge cases met, lots of regex learning.