This comment is hidden because it contains spoiler information about the solution
The writer of the kata explicitly said not to use encode. You really should not have used it.
I am not 100% sure because of the spacing, but I think that if you set "a" to "len(x)" then "a > len(x)" will always be false. This means that your code will be returning the length of the last word as the if statement will never be evaluated.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The writer of the kata explicitly said not to use encode. You really should not have used it.
This comment is hidden because it contains spoiler information about the solution
I am not 100% sure because of the spacing, but I think that if you set "a" to "len(x)" then "a > len(x)" will always be false. This means that your code will be returning the length of the last word as the if statement will never be evaluated.