summaryrefslogtreecommitdiff
path: root/selection-sort.py
diff options
context:
space:
mode:
Diffstat (limited to 'selection-sort.py')
-rwxr-xr-xselection-sort.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/selection-sort.py b/selection-sort.py
index b500333..f4e68ae 100755
--- a/selection-sort.py
+++ b/selection-sort.py
@@ -28,6 +28,7 @@ for i in range(len(numdata)):
# updating values using simultaneous assignments
numdata[i], numdata[mindex] = numdata[mindex], numdata[i]
-# finishing up
-print("Sort complete, writing to file!")
+# finishing up, appending identifier to file
+target = target[:-4]+"-selection"+target[-4:]
+print("Sorting complete, writing to file!")
io.egressCSV(numdata,target)