for stand in range(len(data) - 1)
로 반복 lowest = stand
로 놓고,for num in range(stand + 1, len(data))
(stand 이후부터 반복)data[lowest] > data[num]
이면, lowest = num
data[num], data[lowest] = data[lowest], data[num]
def selection_sort(data):
for stand in range(len(data) - 1):
lowest = stand
for index in range(stand + 1, len(data)):
if data[lowest] > data[index]:
lowest = index
data[lowest], data[stand] = data[stand], data[lowest]
return data