A

Admin • 833K Points
Coach

Q. Which exception is raised if you try to read from a file opened in 'w' mode?

  • (A) IOError
  • (B) ValueError
  • (C) UnsupportedOperation
  • (D) FileNotFoundError
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Trying to read from a write-only file raises UnsupportedOperation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.