I am probably making a stupid mistake, but I can\'t find where it is. I want to count the number of lines in my csv file. I wrote this, and obviously isn\'t working: I have
# with built in libraries opened_file = open('f.csv') from csv import reader read_file = reader(opened_file) apps_data = list(read_file) rowcount = len(apps_data) #which incudes header row print("Total rows incuding header: " + str(rowcount))