
    Write a function to determine if a sequence of transaction risk scores follows a strictly increasing or decreasing pattern, which could indicate potential fraudulent behavior. The function should analyze the sequential pattern of risk scores and return true if the sequence is either consistently increasing or consistently decreasing, and false otherwise.
    

    
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of transaction risk scores follows a strictly increasing or decreasing pattern, which could indicate potential fraudulent behavior. The function should analyze the sequential pattern of risk scores and return true if the sequence is either consistently increasing or consistently decreasing, and false otherwise.
    

    """
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of transaction risk scores follows a strictly increasing or decreasing pattern, which could indicate potential fraudulent behavior. The function should analyze the sequential pattern of risk scores and return true if the sequence is either consistently increasing or consistently decreasing, and false otherwise.
    

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