Update min and index , if current element > adjacent elements
elif ( list1 [ j ] > list1 [ j - 1 ] and list1 [ j ] > list1 [ j + 1 ] and min > list1 [ j ] ) : NEW_LINE INDENT min = list1 [ j ] NEW_LINE index = j NEW_LINE DEDENT