Vidyalelo
Python · Q12

Files Handling in Python

Programming · Python · question 12

Q12

How can you close a file in Python?

A.
By using the close() method on a file object
Answer
B.
By using the end() function
C.
By using the exit() method
D.
By using the terminate() method

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board