summaryrefslogtreecommitdiff
path: root/tripler.py
diff options
context:
space:
mode:
Diffstat (limited to 'tripler.py')
-rwxr-xr-xtripler.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tripler.py b/tripler.py
new file mode 100755
index 0000000..527da24
--- /dev/null
+++ b/tripler.py
@@ -0,0 +1,25 @@
+#!/bin/python3
+
+# ---------- title
+
+
+
+# ---------- Imported modules
+import inputoutput as io
+import csv
+import sys
+
+
+# ---------- Main
+target = sys.argv[1]
+
+# ingress of data
+numdata = io.ingressCSV(target)
+
+# arithmetic operation
+for i in range(len(numdata)):
+ numdata[i] = 3 * numdata[i]
+
+# finishing up
+print("writing to file")
+io.egressCSV(numdata,target)