
    Write a function to determine if passenger counts on a bus route follow a strictly increasing or decreasing pattern throughout the day, which would indicate a consistent trend in ridership. A monotonic pattern would help transit planners identify predictable usage patterns for better capacity planning.
    

    
def is_Monotonic(A):
    """
    Write a function to determine if passenger counts on a bus route follow a strictly increasing or decreasing pattern throughout the day, which would indicate a consistent trend in ridership. A monotonic pattern would help transit planners identify predictable usage patterns for better capacity planning.
    

    """
def is_Monotonic(A):
    """
    Write a function to determine if passenger counts on a bus route follow a strictly increasing or decreasing pattern throughout the day, which would indicate a consistent trend in ridership. A monotonic pattern would help transit planners identify predictable usage patterns for better capacity planning.
    

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