A

Admin • 833K Points
Coach

Q. How can you write multiple lines to a file at once?

  • (A) write()
  • (B) writelines()
  • (C) writemany()
  • (D) append()
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

writelines() can be used to write multiple lines from a list.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.