tictactoe.py
def actions(board):
    """
    Returns set of all possible actions (i, j) available on the board.
    """

    # Loop through the board and check all places which are EMPTY and add them to a single set
    return set(
        (i, j)
        for i, val1 in enumerate(board)
        for j, val2 in enumerate(val1)
        if val2 == EMPTY
    )

    Returns set of all possible actions (i, j) available on the board.
    
Returns set of all possible actions (i, j) available on the board.
Returns set of all possible actions ( i j ) available on the board .
def actions(board):
    return set(
        (i, j)
        for i, val1 in enumerate(board)
        for j, val2 in enumerate(val1)
        if val2 == EMPTY
    )
def actions ( board ) : return set ( ( i , j ) for i , val1 in enumerate ( board ) for j , val2 in enumerate ( val1 ) if val2 == EMPTY )
Returns set of all possible actions (i, j) available on the board.
Returns set of all possible actions ( i j ) available on the board .
"""
    Returns set of all possible actions (i, j) available on the board.
    """ # Loop through the board and check all places which are EMPTY and add them to a single set
board