1with open(r'c:\dl\FrameRecentSessions.csv') as csv_file:
2 csv_reader = csv.reader(csv_file, delimiter=',')
3 line_count = 0
4 for row in csv_reader:
5 if line_count == 0:
6 print(f'Column names are {", ".join(row)}')
7 line_count += 1
8 else:
9 print(f'\t{row[0]} works in the {row[1]} department, and was born in {row[2]}.')
10 line_count += 1
11 print(f'Processed {line_count} lines.')
1import csv
2with open('innovators.csv', 'r') as file:
3 reader = csv.reader(file, delimiter = '\t')
4 print(reader)
5 for row in reader:
6 print(row)
7