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.
You need to put "letter ==" in your 2nd logical expression (in front of the "X").
If you don't then it will practically means:
man I was working on a similar solution that failed:
for letter in s:
if letter == "x" or "X":
sum += 1
Could you explain why my answer fails ?
I am guessing its because I cannot compare 2 values at the same time to an iterator (letter) ?