
    Write a function to determine if a sequence of credit card transactions follows a consistently increasing or decreasing pattern, which could indicate potential fraudulent activity. The function should analyze the transaction amounts or risk scores over time and return whether the sequence is monotonic (either consistently increasing, consistently decreasing, or staying flat).
    

    
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of credit card transactions follows a consistently increasing or decreasing pattern, which could indicate potential fraudulent activity. The function should analyze the transaction amounts or risk scores over time and return whether the sequence is monotonic (either consistently increasing, consistently decreasing, or staying flat).
    

    """
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of credit card transactions follows a consistently increasing or decreasing pattern, which could indicate potential fraudulent activity. The function should analyze the transaction amounts or risk scores over time and return whether the sequence is monotonic (either consistently increasing, consistently decreasing, or staying flat).
    

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