A

Admin • 833.24K Points
Coach

Q. How do you check if a file is closed?

  • (A) file.status
  • (B) file.closed
  • (C) isfile.closed()
  • (D) checkclose(file)
  • Correct Answer - Option(B)
  • Views: 19
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

file.closed returns True if the file is closed.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.