week0/tictactoe/tictactoe.py
def player(board):
    """
    Returns player who has the next turn on a board.
    """
    Xcount = 0
    Ocount = 0

    for row in board:
        Xcount += row.count(X)
        Ocount += row.count(O)

    if Xcount <= Ocount:
        return X
    else:
        return O

    Returns player who has the next turn on a board.
    
Returns player who has the next turn on a board.
Returns player who has the next turn on a board .
def player(board):
    Xcount = 0
    Ocount = 0
    for row in board:
        Xcount += row.count(X)
        Ocount += row.count(O)
    if Xcount <= Ocount:
        return X
    else:
        return O
def player ( board ) : Xcount = 0 Ocount = 0 for row in board : Xcount += row . count ( X ) Ocount += row . count ( O ) if Xcount <= Ocount : return X else : return O
Returns player who has the next turn on a board.
Returns player who has the next turn on a board .
"""
    Returns player who has the next turn on a board.
    """
board