A

Admin • 833K Points
Coach

Q. Which file mode should you use to avoid overwriting an existing file?

  • (A) w
  • (B) x
  • (C) r
  • (D) a
  • Correct Answer - Option(B)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

'x' mode raises an error if the file already exists.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.