I am not a programmer (obviously), but I can’t get the result I’m looking for, which is how many times is the number 4 appear in the list. BC491 is a comma delimited file. Thank you.
with open(“bc491.csv”, “r”) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=’,’)
for lines in csv_reader:
print("This is the data: ", newlist)
a = newlist.count(4)
print("How many 4s?: ", a)