Examveda
Examveda

What is the purpose of the with statement in file handling?

A. It ensures that the file is properly closed after usage

B. It creates a new file

C. It reads the file contents

D. It deletes the file

Answer: Option A


This Question Belongs to Python Program >> Files Handling In Python

Join The Discussion

Related Questions on Files Handling in Python