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.
Q. Correct syntax of file.writelines() is?
β
Correct Answer: (C)
fileobject.writelines(sequence)
Explanation by: Mr. Dubey
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.
Discussion
Question Analytics
357
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
81%
Success Rate