Home »
MCQs »
Python MCQs
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?
- True
- 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.