Examveda

How can you check if a file exists in Python before opening it?

A. By using the os.path.exists() function

B. By using the file.exists() method

C. By using the file.is_existing() method

D. By using the file.exist() method

Answer: Option A


This Question Belongs to Python Program >> Files Handling In Python

Join The Discussion

Related Questions on Files Handling in Python