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.
reported to the FBI, have fun in jail buddy
yes
I hope that if I keep trying, problems like this will be easier.. right? :*)
Very efficient man!
That's indeed very clever
Thanks, I feel myself smart for getting to this myself.
nice way to keep it simple and understandable
Took me more than half an hour to produce like 15 lines of code for this!
But if you spend a couple of minutes to see how enumerate works, it all makes perfect sense.
I hate myself I literally spent 2 hours trying to solve this, thinking im smart when I finally solved it until im faced with this
@RedIronRaven: practicing and learning about Python's many builtin functions.
Could someone explain why ' * i for i ' is needed? What is it representing? Thanks
why do we have to put .lower() ? without it it seems to work until the last chain for some reason
Awwww, yes! join exists :) I did it without it.
You're only asked to return True if n is a digit, which is what the solution does. Nowhere in the kata description does it say you have to use regex.
I would argue in any case that it's better practice to use built-ins for this instead of bringing in the overhead of the regex library where it's not required.
its perfect
Loading more items...