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.
That makes a lot of sense! Thanks :)
I'm slightly confused by the wording of the instruction - 'Gaps between words should not differ by more than one space', does that mean 3 spaces is the limit? I can't wrap my head around it! Thanks!
An easier way to build your dictionary may be to loop through all uppercase letters and then get their count from s using s.count(letter) - this way you don't have to worry about sorting and building the count yourself. You could use a dictionary comprehension here too!
This comment is hidden because it contains spoiler information about the 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
This comment is hidden because it contains spoiler information about the 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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
And now somehow it works!
There seems to be an issue with one of the test cases: {'lava': 0, 'blaze rod': 11, 'coal': 0, 'wood': 0, 'stick': 0} should equal {'lava': 1, 'blaze rod': 4, 'coal': 0, 'wood': 2, 'stick': 10}. However the latter adds up to 1320 using 17 items while mine adds to up the same using fewer items, is there some sort of limit on how much of one item can be used or is there something blatantly obvious that I am missing? Thanks.