def checkStrike(frame):
    """Checks if the frame is a strike.

    Checks if the frame is a strike by checking if the first element of frame equals to 10.

    Args:
        frame: A list with the two elements that indicate the pins hit by the player.

    Returns:
        A boolean value were true means that the frame is a strike and false
        when the frame is not a strike.

    Raises:
        TypeError: An error occurred accessing the frame object.
    """

    if (type(frame) is not type([])):
        raise TypeError("Input must be a list with two elements")

    if frame[0] == 10:
        return True
    else:
        return False