adplus-dvertising
frame-decoration

Question

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)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Correct syntax of file.writelines() is?