DEV Community

Discussion on: Daily Challenge #29 - Xs and Os

Collapse
 
matrossuch profile image
Mat-R-Such

Python:

def xo(txt):
    return  True if txt.lower().count('x') == txt.lower().count('o') else False