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.
It's a horrible idea to use try/except for completely preventable exceptions.
Use spoiler flag if your comment contains info about solution.
Damn I feel dumb. Thank you for showing me how to do it better
I think this conditional is taking advantage of the fact that an empty array is "falsy" in python which is why this works :)
Thank you, for explain it!
Didn't know about this If Array meaning that there's an array there. That's great.
1K IQ play
I am also write like this
i feel like thats the best way to learn lol, at least imo.
enumerate() returns a special generator from an iterable. In itself, it has O(1) runtime and does not split anything. If anything it is the iterator of
str
that is "splitting" (or better: iterating) the string into individual characters if you mean that. enumerate() just adds indices on top of that.Time waster, please write concise katas, when kata is easy but required a lot of time to read and to complete it's just bad style. If you want the kata to be somewhat educational about resistors, then description can be long, but the solution should be not time-consuming.
No, it does not. In the newest browsers versions, radix is set to
10
by default. See: https://stackoverflow.com/a/58311034/17799125Nice solution
This is not a 7kyu kata...
Need Radix
Loading more items...