I uploaded a csv file created by excel, and am trying to figure out how to update a new row into the dictionary it created?
I've tried DictionaryName.update, but don't know what the dictionary has been named.
import csv
with open('comics.csv', 'r') as csv_file:
csv_reader = csv.DictReader(csv_file)
for line in csv_reader:
print(line)
Very new to coding this is for my 1010 class, the csv file contains names of comic books, authors, artists, issue number, and variant cover.