A

Admin • 802.91K Points
Coach

Q. Which function checks if a file exists?

  • (A) os.exists()
  • (B) file.exist()
  • (C) os.path.exists()
  • (D) path.check()
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
os.path.exists() returns True if the file exists.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.