
    Write a function to determine if a sequence of transaction risk scores follows a strictly increasing or decreasing pattern, which could indicate potential fraudulent activity. The function should analyze the complete sequence of risk scores and return true if the pattern is consistently moving in one direction (either increasing or 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 activity. The function should analyze the complete sequence of risk scores and return true if the pattern is consistently moving in one direction (either increasing or 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 activity. The function should analyze the complete sequence of risk scores and return true if the pattern is consistently moving in one direction (either increasing or 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)))