1.

Which function is used to close a file in python?(a) Close()(b) Stop()(c) End()(d) Closefile()I had been asked this question during an online exam.My enquiry is from Files topic in chapter Regular Expressions and Files of Python

Answer»

Right CHOICE is (a) Close()

BEST explanation: f.close()to close it and free up any system resources TAKEN up by the open FILE.



Discussion

No Comment Found

Related InterviewSolutions