Question
Computer Science Question on Character String
Which method is used to write multiple strings of a file ?
A
write()
B
writelines()
C
writeline()
D
writes()
Answer
writelines()
Explanation
Solution
The correct option is (B) :writelines().
Which method is used to write multiple strings of a file ?
write()
writelines()
writeline()
writes()
writelines()
The correct option is (B) :writelines().