Numbuer = [5,8,109,87,99,33,24,77]
def findMinAndMax(Numbuer):
if Numbuer !=[]:
min = Numbuer[0]
max = Numbuer[0]
for x in Numbuer:
if max < x:
max = x
i f min > x:
min = x
return(min,max)
else:
return(None,None)
print(findMinAndMax(Numbuer))