def max_element(l):
    """
    Returns the maximum element of a given list of numbers.
    """
    max_ = None
    for x in l:
        if max_ is None or x > max_:
            max_ = x
    return max_