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.
Supermarket till (google images)
Weird string case begins separately for each word, not just every character :P Does that make sense now?
I tried looking over it, and I think you're swapping case based on input string. That's not correct, it doesn't matter if input is all uppercase or lowercase, it should work the same. It's all about indexes.
Please mark your post as having spoiler content next time.
Your code is very hard to read. Please use proper formatting (triple backticks + language) and post your code in reply here.
Well, you can see that with that input the position of the parentheses is invalid, so
False
is the right answer.Read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#print-input