I am looking to find the lowest positive value in an array and its position in the list. If a value within the list is duplicated, only the FIRST instance is of interest. This i
add a filter then :
myArray = [4, 8, 0, 1, 5] result = min(filter(lambda x: x > 0, myArray)) print result # 1 print myArray.index(result) # 3