
    Write a function to determine if a sequence of patient vital sign measurements follows a consistently increasing or decreasing trend (monotonic pattern), which could indicate a steady decline or improvement in the patient's condition. The function should analyze sequential readings of a single vital sign parameter and return whether the trend is monotonic, helping medical staff identify potentially concerning patterns that require immediate attention.
    

    
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of patient vital sign measurements follows a consistently increasing or decreasing trend (monotonic pattern), which could indicate a steady decline or improvement in the patient's condition. The function should analyze sequential readings of a single vital sign parameter and return whether the trend is monotonic, helping medical staff identify potentially concerning patterns that require immediate attention.
    

    """
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of patient vital sign measurements follows a consistently increasing or decreasing trend (monotonic pattern), which could indicate a steady decline or improvement in the patient's condition. The function should analyze sequential readings of a single vital sign parameter and return whether the trend is monotonic, helping medical staff identify potentially concerning patterns that require immediate attention.
    

    """
    return all((A[i] <= A[i + 1] for i in range(len(A) - 1))) or all((A[i] >= A[i + 1] for i in range(len(A) - 1)))