Hello,
I'm a newby to Python and I want to write a function which imports a CSV file and
returns a dictionary for the index of each subcategory in a column like this:
hockey: 3, Tennis: 54, volleyball: 59.
Any advise on how to adjust my code?
Thanks!
import csv
with open('pythonfile.csv', newline='') as csvfile:
test = csv.reader(csvfile, delimiter=' ', quotechar='|')
for row in pythonfile:
print(', '.join(row))