Q. What is the use of the 'with' statement when working with files?
β
Correct Answer: (A)
To automatically close the file
Explanation: 'with' ensures that the file is properly closed after its block execution.