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
def find_min_position(array): plus_array = [elem for elem in array if elem > 0] min_elem = min(plus_array) return min_elem, array.index(min_elem) In : find_min_position([4, 8, 0, 1, 5]) Out: (1, 3)