Q.

Correct syntax of file.writelines() is?

A. file.writelines(sequence)
B. fileobject.writelines()
C. fileobject.writelines(sequence)
D. none of the mentioned
Answer» C. fileobject.writelines(sequence)
Explanation: the method writelines() writes a sequence of strings to the file. the sequence can be any iterable object producing strings, typically a list of strings. there is no return value.
1.2k
0
Do you find this helpful?
10

Discussion

No comments yet