Skip to content

Commit 88c0433

Browse files
authored
Create csv_read.py
1 parent 78ad307 commit 88c0433

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

csv_read.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import csv
2+
3+
4+
5+
mas = "example.csv"
6+
7+
8+
with open(mas) as file1:
9+
csv_reader = csv.reader(file1, delimiter=',')
10+
line = 0
11+
top = []
12+
bottom = []
13+
for row in csv_reader:
14+
if line == 0:
15+
top = row
16+
line += 1
17+
elif line == 1:
18+
bottom = row
19+
line += 1
20+
kam = zip(top,bottom)
21+
22+
for i in kam:
23+
print(i)

0 commit comments

Comments
 (0)