diff options
Diffstat (limited to 'heap-sort.py')
-rwxr-xr-x | heap-sort.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/heap-sort.py b/heap-sort.py index c8a45eb..8bb4189 100755 --- a/heap-sort.py +++ b/heap-sort.py @@ -58,6 +58,7 @@ def heapSort(atad): # using sorting algorithm heapSort(numdata) -# finishing up +# finishing up, appending "-heapsorted" to sorted CSV +target = target[:-4]+"-heapsorted"+target[-4:] print("Sorting done! Writing to file") io.egressCSV(numdata,target) |