array = [7, 5, 9, 0, 3, 1, 6, 2, 4, 8]

for i in range(len(array)):
    min_index = i
    for j in range(i+1, len(array)):
        if array[min_index] > array[j]:
            min_index = j
    array[i], array[min_index] = array[min_index], array[i]

print(array)

# swap example  ##########################
array = [3, 5]
array[0], array[1] = array[1], array[0]
print(array)
##########################################

array = [7, 5, 9, 0, 3, 1, 6, 2, 4, 8]

for i in range(len(array)):
    min_index = i
    for j in range(i+1, len(array)):
        if array[min_index] > array[j]:
            min_index = j
    array[i], array[min_index] = array[min_index], array[i]

print(array)

# swap example  ##########################
array = [3, 5]
array[0], array[1] = array[1], array[0]
print(array)
##########################################

# swap example  ########################## ##########################################