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.
Your first two list comprehensions are useless, but your code seems fine apart from that. It throws an
IndexError
when s1 or s2 contain uppercase letters, and that's strange since the description saysOnly lower case letters will be used (a-z). No punctuation or digits will be included.
. If you replaceord(i)
withord(i.lower())
in your code, it should pass the tests.Your method is correct. Theres a bug in tests because there are inputs with uppercase letters.
BTW you can see inputs by printing them with
print(s1 + ' ' + s2)
.