The purpose of this code is to see whether or not there are an equal number of 'x’s and 'o’s.
def xo(s):
if s.count('x') == s.count('o'):
return True
else:
return False
It passed most of the tests but failed 4:
xo(roxopooooUtLooxhdoxxxQoxNoxCxokoxooxxGxASxfxEooooJbmxxxxx) should be True
xo(xxxxxooxxoooxbooxxxoxoxoxxxoxxxoxoxoooxxoxxAxooooo) should be False
xo(JhkxxxbGxdQxxxpxAxxooxrxmNooLofxxCooxExo) should be False
And I guess my function is or is not case sensitive. I can’t tell