<filename>Sorting/SelectionSort/selectionsort.py
#Selection Sort Algorithm

def selectionSort(data):

    for scanIndex in range(0, len(data)):

        minIndex = scanIndex

        for compIndex in range(scanIndex + 1, len(data)):
            if data[compIndex] < data[minIndex]:
                minIndex = compIndex

        if minIndex != scanIndex:
            data[scanIndex], data[minIndex] = data[minIndex], data[scanIndex]

            print(data)
