NIELIT O Level Exam

Which of the following statements is used to check if a file exists in Python?

Which of the following statements is used to check if a file exists in Python?

निम्नलिखित में से किस फंक्शन का उपयोग यह जांचने के लिए किया जाता है कि कोई फ़ाइल पायथन में मौजूद है या नहीं?

A. file_exists()

B. exists_file()

C. os.path.exists()

D. check_file()




Correct Answer is :

C. os.path.exists()



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad