def max_element(l: list):
    m = l[0]
    for e in l:
        if e > m:
            m = e
    return m
def max_element(l: list):
    m = l[0]
    _e_i = 0
    while _e_i < len(l):
        e = l[_e_i]
       
        if e > m:
            m = e
        _e_i += 1
    return m