
    Write a function to determine if a sequence of traffic density measurements along a delivery route follows a consistently increasing or decreasing pattern, which is essential for optimizing delivery schedules. The function should analyze the traffic density data collected at regular intervals and confirm whether the pattern is monotonic, indicating predictable traffic flow changes throughout the delivery window.
    

    
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of traffic density measurements along a delivery route follows a consistently increasing or decreasing pattern, which is essential for optimizing delivery schedules. The function should analyze the traffic density data collected at regular intervals and confirm whether the pattern is monotonic, indicating predictable traffic flow changes throughout the delivery window.
    

    """
def is_Monotonic(A):
    """
    Write a function to determine if a sequence of traffic density measurements along a delivery route follows a consistently increasing or decreasing pattern, which is essential for optimizing delivery schedules. The function should analyze the traffic density data collected at regular intervals and confirm whether the pattern is monotonic, indicating predictable traffic flow changes throughout the delivery window.
    

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