Question:

In Python, when open() method is applied in ‘<a>' mode, a file is opened in append mode. If the file does not exist, then :

Updated On: Apr 17, 2024
  • The system will generate an error message
  • The system will terminate
  • The system willgenerate a new file
  • The system will generate an error message and terminate
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The correct option is(C): The system willgenerate a new file
Was this answer helpful?
0
0