I have been recently working on the Python3 pro track, in specific the files portion. However, once I got to lesson 8 and copypasted the code into vscode in order to make sure that it worked, I ran into an error, despite it working in CodeCademy:
with open(‘cool_csv.csv’,newline=’’) as cool_csv_file:
cool_csv_dict = csv.DictReader(cool_csv_file)
for row in cool_csv_dict:
The correct result is printed out in the terminal here, yet in vscode I get a key error. Would anyone be able to tell me why?
Learn Python 3 - Files Lesson 8