A

Admin • 832.27K Points
Coach

Q. Which method writes a string to a file?

  • (A) append()
  • (B) put()
  • (C) write()
  • (D) insert()
  • Correct Answer - Option(C)
  • Views: 18
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The write() method adds a string to the file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.