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.
This comment is hidden because it contains spoiler information about the solution
Does it make much of a difference here? It's passed by value for a one line function.
CPU go brrrrrrrr
This comment is hidden because it contains spoiler information about the solution
and using .lower introduces error. i think this person just asked chat gpt and threw it up bc this is what gpt wrote me when i asked hahaha
I think if the formatted string function received more arguments than the available placeholders, it will only take what it can from the beginning (in order) and ignore the rest of the arguments. E.g.
outputs:
That does make sense that it's slower, this code loops over EVERY LETTER.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Fair enough on the double digits. Small correction - the numbers the kata specifies are 1-9.
Meh. Agreed - but the function name to complete is 'maps' so it seemed like a hint to use map. Either works fine.
This needlessly joins result all the time.
Nice. You should however choose another variable for 'sum' - you are shadowing Python's "sum".
This comment is hidden because it contains spoiler information about the solution
True, but the kata specified that numbers are 0-9, so double digits are out of scope.
Loading more items...