```python
def is_Monotonic(A):
    """
    Checks if a list is monotonic.

    A list is monotonic if it is either monotonically increasing or
    monotonically decreasing. An empty list or a list with one element
    is considered monotonic.

    Args:
        A: A list of comparable elements.

    Returns:
        True if the list is monotonic, False otherwise.
    """
    is_increasing = all(A[i] <= A[i+1] for i in range(len(A) - 1))
    is_decreasing = all(A[i] >= A[i+1] for i in range(len(A) - 1))
    
    return is_increasing or is_decreasing
```