<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:


def monotonic(l: list):
    """Return True is list elements are monotonically increasing or decreasing. True False True """
    if l == sorted(l) or l == sorted(l, reverse=True):
        return True
    return False
