I am trying to open up data from a CSV file in my Visual Studio terminal and receive:
''''
Traceback (most recent call last):
File "/home/jubal/ CrashCourse Python Notes/Chapter 16 CC/Downloading Date/csv
format/highs_lows.py", line 7, in <module>
with open(filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'sitka_weather_2018_full.csv'
''''
and here is the program highs_lows.py, it is saved in the same folder as sitka_weather_2018_full.csv
''''
import csv
filename = 'sitka_weather_2018_full.csv'
with open(filename) as f:
reader = csv.reader(f)
header_row = next(reader)
highs = []
for row in reader:
highs.append(row[8])
print(highs)
''''
My latop run linux mint 19.2 cinnamon, also I am able to run this program just fine with jupyter notebook but when I try to convert into a python program and run it in the VS code terminal is when this problem occurs. Newbie to programming so any help would be great. Thanks for your time!