Question
Computer Science Question on Python Libraries
In Python, when open() method is applied in ‘' mode, a file is opened in append mode. If the file does not exist, then :
A
The system will generate an error message
B
The system will terminate
C
The system willgenerate a new file
D
The system will generate an error message and terminate
Answer
The system willgenerate a new file
Explanation
Solution
The correct option is(C): The system willgenerate a new file