Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 101)
101.
What does the file.writelines(lines) method do?
Writes a single line to the file
Writes multiple lines to the file from a list
Writes the entire content of another file
Writes a specific number of characters to the file
Answer: Option
Explanation:
file.writelines(lines) writes multiple lines to the file from a list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.