I'm trying to find the minimum value in a list using a for loop but I'm not getting the right answer.
This is what I am doing:
xs=[5,3,2,5,6,1,0,5]
for i in xs:
if xs[i]< xs[i+1]:
print(i)
edit: sorry i should've said this earlier but I'm not allowed to use the min function!
minfunction?