A

Admin • 832.27K Points
Coach

Q. Which mode is used to write to a file, creating it if it doesn't exist?

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

Explanation by: Admin

The 'w' mode writes to a file and creates it if not present.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.