def winner(self):
        """Return 'X' or 'O' or 'T' else False if game not over."""
        for way in self._win_ways:
            if way.issubset(self.xnums):
                return 'X'
            if way.issubset(self.onums):
                return 'O'
        if len(self.xnums) + len(self.onums) == 9:
            return 'T'
        return False
Return 'X' or 'O' or 'T' else False if game not over.
recipes/Python/578563_Tic_Tac_Toe_console_game/recipe-578563.py