From 93ca9c5856888c373977c8901a28b432bfa17e95 Mon Sep 17 00:00:00 2001 From: internetlandlord Date: Mon, 17 Oct 2022 20:38:43 +0000 Subject: Using tripler.py as a proof of concept for file -> list -> algo manipulation. The test.py script is now list-generator.py for ease of reading. --- tripler.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tripler.py (limited to 'tripler.py') 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) -- cgit v1.2.3