fork download
# import csv
# with open('numbers.csv', 'r+') as csvfile:
#     numreader = csv.reader(csvfile)

# instead of actually reading from a file, let's just define it locally
# but you see my point about being careful about where your stuff comes from?

numreader = [
    [1.0, 2.0, 1.5, 1],
    [3.5, 2.7, 4.8, 5]
]
for row in numreader:
    for number in row:
        print(1 / number)
Success #stdin #stdout 0s 23296KB
stdin
Standard input is empty
stdout
1.0
0.5
0.666666666667
1
0.285714285714
0.37037037037
0.208333333333
0