summaryrefslogtreecommitdiff
path: root/bubble-sort.py
diff options
context:
space:
mode:
authorinternetlandlord <f.fredhenry@gmail.com>2022-10-26 09:55:31 -0500
committerinternetlandlord <f.fredhenry@gmail.com>2022-10-26 09:55:31 -0500
commit030d136e851340af56c613bca75a4c58d91e8c4a (patch)
treefe86aaf40738dfbf2a5f3ddff3d0eebe6a59fecd /bubble-sort.py
parent68c7b0092fcb55bec2e9fa4688ffc99649aebf83 (diff)
Refactoring/housekeeping on source code for bubble, io and insertion sort files.
Diffstat (limited to 'bubble-sort.py')
-rwxr-xr-xbubble-sort.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bubble-sort.py b/bubble-sort.py
index 431a6f2..ac7237c 100755
--- a/bubble-sort.py
+++ b/bubble-sort.py
@@ -1,8 +1,10 @@
#!/bin/python3
-# ---------- title
-
-
+# ---------- Bubble Sort Algorithm
+# Python implementation of bubble sort algorithm
+# uses the csv, and inputoutput modules to import
+# CSVs and sort the numbers in a list before writing
+# to a CSV file with an appended -sorted title.
# ---------- Imported modules
import inputoutput as io
@@ -23,5 +25,5 @@ for i in range(len(numdata)):
numdata[j], numdata[j+1] = numdata[j+1], numdata[j]
# finishing up
-print("writing to file")
+print("Sorting complete! Writing to file.")
io.egressCSV(numdata,target)