Question

What is the purpose of the with statement when working with files?

A To open a file in write mode
B To open a file in read mode
C To ensure that a file is properly closed after it is no longer needed
D To delete a file
E To rename a file
Practice Next

Hey! Ask a query