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.
This comment is hidden because it contains spoiler information about the solution
Lua test is not working correctly
I had a similiar solution. There's a few things you can do to shorten the code up a bit though.
You don't need to range through the list if you are trying to iterate through the elements. Simply, 'for word in words' will get you each element in the list.
instead of getting the len() of the list you can use indexing to check the last element; 'words[-1] == (len(words) -1)'
Just keep trying to simplify your goal. Be as general as possible. What data type should every element of the string be?
This comment is hidden because it contains spoiler information about the solution
Glad to see I wasn't the only one to error handle int()
It's a snake
You can reduce even more by only using two 'ifs'
Index 1, if it's 'e' then it is not green
Cool I came to the same solution but wrote out three to show readability