Computer Science
When you open a file for reading, if the file does not exist, an error occurs.
Python File Handling
1 Like
Answer
True
Reason — When a file is opened for reading using r mode (text files) or rb mode (binary files), if the file does not exist, Python raises an error.
Answered By
2 Likes
Related Questions
Fill in the blanks:
The file mode to open a csv file for appending as well reading is _________.
Fill in the blanks:
To specify a different delimiter while writing into a csv file, _________ argument is used with csv.writer().
When you open a file for writing, if the file does not exist, an error occurs.
When you open a file for writing, if the file exists, the existing file is overwritten with the new file.