def get_floor(directions):
    """
    Get the floor for Santa.

    Parameters
    ----------
    directions : str
        A string of parentheses representing directions. An opening parenthesis,
        (, means he should go up one floor, and a closing parenthesis, ), means
        he should go down one floor.

    Returns
    -------
    int
        The floor to which Santa should go.

    """
    floor = 0
    for step in directions:
        floor += {"(": 1, ")": -1}[step]
    return floor