M

Mr. Dubey • 53.08K Points
Coach

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

(A) file.writelines(sequence)
(B) fileobject.writelines()
(C) fileobject.writelines(sequence)
(D) none of the mentioned
Share

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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics