def select_sort(list):
len_list = len(list)
for i in range(len_list):
min = i
for j in range(i+1,len_list):
if list[j] < list[min]:
min = j
if min != i:
list[min],list[i] = list[i],list[min]
return list
list = [2,3,1,6,9,4,5]
r = select_sort(list)
print(r)