KnowledgeBoat Logo
|

Computer Science

When we open a file in read mode, the given file must exist in the folder; otherwise, Python will raise FileNotFound error.

Python Data Handling

2 Likes

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 will raise FileNotFound error.

Answered By

1 Like


Related Questions