def in_rectangle(rect, point):
    """
    to check if a point is contained in the rectangle or not
    Args:
        rect: rectangle
        point: points to be checked

    Returns: a boolean value, true or false. If inside the rectangle it returns True

    """
    if point[0] < rect[0]:
        return False

    elif point[1] < rect[1]:
        return False

    elif point[0] > rect[0] + rect[2]:
        return False

    elif point[1] > rect[1] + rect[3]:
        return False

    return True