How do you close a file object (fp)?
A. close(fp)
B. fclose(fp)
C. fp.close()
D. fp.__close__()
Answer:A
How do you close a file object (fp)?
A. close(fp) B. fclose(fp) C. fp.close() D. fp.__close__()
Explanation: close() is a method of the file object.