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.
Approved and thank you.
Approved and thank you.
Thanks Giacomo. I implented via tuple given my python base, but nothing sacred there. Translate away!
The tests are using the function that you wrote and no more.... if you
import re
outside of the function, it wouldn't get picked up when the function is called in the tests.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Extra credit question:
If your average random sets thrown at the lowercase alphabet is ten (10) letters long (uppercase and lowercase), then how many random sets - on average - do you have to throw at the alphabet in order to be left with only underscores?
Much shorter :)
I made this as a little bit of practice as I've honestly just started learning sets, and yesterday was making some rookie errors when switching between sets and dicts, working with non-hashable objects, etc. Will probably prompt me to make a few other simple and easy kata like this.
I agree... was just toying around. But personally I prefer neither the reversed or the range '-1,-1,-1' and think it's easier to read using
a[-i::-1]
for the correct rangegood idea.
thanks... i often do the same (minus the multitasking!)
You beat me to it.... didn't know why you'd use len(a[::-1])
Thanks - glad you enjoyed.
This comment is hidden because it contains spoiler information about the solution
May be due to the fact that I had updated my description (to add some more clarity) while you were in the process of translating?
Loading more items...