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.
Best practice, clever, short, readable... genius!!
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
wouldn't this have the same runtime as:
`
unique = []
iterate
if not in unique: # append
`
s.index does search the original text right?
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
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
This comment is hidden because it contains spoiler information about the solution
input will always be a string:)
if we gave numbers as the value to the variables, why didnt it just add the numbers? i used str() to convert to a string. please clear my doubt
This comment is hidden because it contains spoiler information about the solution
Loading more items...