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.
are you testing an older version of your solution and have a newer one on VS?
ah, i see, it returns a float by default within that context, thanks
Using python, can expressions not be used for slice indices?
I understand expressions can be used wherever values can also be used
like so, trying this in my solution to check if string is already a palindrome:
if s[:len(s)/2 + 1] == s[len(s)/2:]:
return "OK"
I get:
"TypeError: slice indices must be integers or None or have an index method"
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Got too honed in on a certain approach initially, then remembered the importance of simplicity
This comment is hidden because it contains spoiler information about the solution