I'm a beginner who started studying python recently.
I read and write csv and xlsx files.
In the process, when I entered the code below in the book, a FileNotFoundError appeared.
The csv file exists because it is a self-made file for practice.
import csv
with open("book1.csv") as file:
rows=csv.reader(file)
For row in rows:
print(row)
FileNotFoundError appears now.
Please let me know.
I think you can put the csv file in the same folder where the code is stored.
778 GDB gets version error when attempting to debug with the Presense SDK (IDE)
792 M2 Mac fails to install rbenv install 3.1.3 due to errors
1260 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
870 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2025 OneMinuteCode. All rights reserved.