i'm trying to create a simple minimum function by comparing items in a list to each other.
list1 = [4,20,2,19,3254,234,21,03]
for i in list1:
if list[0] < list[0+i]:
print i
basically my thought process in pseudocode is
for all items in the list
if item n is less than item n+1
return item n
but i'm not sure how to loop the +1 after every n
so i tried to do it with the i in the for loop
any simple suggestions? i don't want to make this more complicated than it should be