Advertisements
Advertisements
Question
What error is returned by the following statement if the file does not exist?
f = open("A.txt")
Options
File Not Found Error
Not Found Error
File Not Found
Found Error
MCQ
Solution
File Not Found Error
Explanation:
The File Not Found Error is a subclass of the multi-argument OSError.
shaalaa.com
Syntax Errors
Is there an error in this question or solution?