
    Write a function to determine if a sequence of patient health measurements over time shows a consistent trend (either strictly increasing or strictly decreasing), which could indicate steady improvement or deterioration in the patient's condition. The function should analyze the sequential health metrics and return true if the measurements are monotonic (consistently increasing or consistently decreasing), and false if the pattern is irregular.
    

    
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of patient health measurements over time shows a consistent trend (either strictly increasing or strictly decreasing), which could indicate steady improvement or deterioration in the patient's condition. The function should analyze the sequential health metrics and return true if the measurements are monotonic (consistently increasing or consistently decreasing), and false if the pattern is irregular.
    

    """
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of patient health measurements over time shows a consistent trend (either strictly increasing or strictly decreasing), which could indicate steady improvement or deterioration in the patient's condition. The function should analyze the sequential health metrics and return true if the measurements are monotonic (consistently increasing or consistently decreasing), and false if the pattern is irregular.
    

    """
    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)))