T
tunacubes
I'm using the csv module to get information from a csv file. I have items listed in Column A. I want to know how many items are listed in Column A.
import csv
with open('test.csv', 'r') as f:
reader = csv.reader(f)
for column in reader:
column = (column[0])
print(column)
We are given
How would I go about getting the amount of numbers that are printed? If I try printing len(column), I get
import csv
with open('test.csv', 'r') as f:
reader = csv.reader(f)
for column in reader:
column = (column[0])
print(column)
We are given
a
b
c
d
e
f
How would I go about getting the amount of numbers that are printed? If I try printing len(column), I get