t = [ 5, 3, 6, 2, 1 ] maxElem = t[0] for elem in t: if elem > maxElem: maxElem = elem print(maxElem)