Files
  • main.py
  • data.csv
main.py
1
2
3
4
5
6
7
8
9
10
import csv
infile = open("data.csv")
data = csv.reader(infile)
names=next(data) # column names
for row in data:
    print(row[0],row[1], row[2])