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.
Beautiful :)
nice, one way to avoid use an re library
Almost exactly how I did it
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
nice
They are called ternary operators.
Example :
if a>1:
x=a
else:
x= b
is written as x = a if a>1 else b
len('1') < len('1') evaluates false, either order is correct in that case unless an extra rule for value order or something was added.
The tests generate two string with different length, so you always have one long string and one short string.
Chrono79, isn't the string of say one and two the same? Or "one" and "six".
What am I missing?
Thank you!
Josh
whats considered "best pratice?"
I like these solutions, but I've only learned to do it the hard way. Is there a name for this method that I can study?
I think I understand the problem this kata isn't for Python.
That is why lol.
I still got it though so that's cool
Loading more items...