Q. How can you write multiple lines to a file at once?
β
Correct Answer: (B)
writelines()
Explanation: writelines() can be used to write multiple lines from a list.