I am importing a file with the extension csv and reading the rows to make a list.
import csv
with open("passwords.csv") as csvfile:
reader = csv.reader(csvfile)
newList = []
for row in reader:
for i in row:
nrwList.append(i)
With the IDE Spyder, I have opened passwords.csv in one of my tabs. When I run the program, it gives me an error saying no such file or directory.