# find the min and max not by function
l = [2,2,3,100,4,5,6,7,1]

first = l[0]
n = len(l)
minimum = first
for i in range(1,n):
    other = l[i]
    if minimum < other:
        minimum = minimum
    else:
        minimum = other


# find the min and max not by function
l = [2,2,3,100,4,5,6,7,1]

first = l[0]
n = len(l)
maximum = first
for i in range(1,n):
    other = l[i]
    if maximum < other:
        maximum = other
    else:
        maximum = maximum



















