summaryrefslogtreecommitdiff
path: root/tripler.py
blob: 0f6ae610756dbd7aa89248bd37edae5e9491a8c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/python3

# ---------- Tripler
# Serves as a proof-of-concept for CSV importation
# and manipulation of its elements in a created list.


# ---------- 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)