The writelines() method is used to write multiple strings to a file?

75. The writelines() method is used to write multiple strings to a file?

  1. True
  2. False

Answer: A) True

Explanation:

In order to write multiple strings to a file, the writelines() method is used. The writelines() method requires an iterable object, such as a list, tuple, or other collection of strings, to be passed to it.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.