You need to sign in or sign up before continuing.×
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.
The description and test cases have been updated to no longer request an output of "Blackjack!" but instead just request 21, to better match the rules of Blackjack
This was a problem in the random testing that has now been fixed, good catch
Python basic tests require output as an Integer while the random tests require output as a string. I had to hardcode my solution to match the poor testing.
This comment is hidden because it contains spoiler information about the solution
Typo in Python function template
def soltion():
should bedef solution():
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It's nice to have some regex practice, I feel this skill can easily go neglected.
Definitely the kind of Kata that forces you to look at the functions in a new way. Gave me a breakthrough moment that was much needed!
This comment is hidden because it contains spoiler information about the solution
Python won't display a single output on seperate lines unless a string spefically contains a line break, you can't tell seperate array elements to display on seperate lines in a single return.
To get the function to return the tower with the breaks already included, you will have to turn it in to a string.
Otherwise when calling the function you will need to do something along the lines of this, to make each floor display on its own line.