Computer Science
Which function is used to write a list of strings in a file ?
- writeline()
- writelines()
- writestatement()
- writefullline()
Python File Handling
2 Likes
Answer
writelines()
Reason — writelines() function is used to write a list of strings in a file.
Answered By
1 Like
Related Questions
Which function is used to read a single line from file ?
- readline()
- readlines()
- readstatement()
- readfullline()
Which function is used to write all the characters ?
- write()
- writecharacters()
- writeall()
- writechar()
Which of the following represents mode of both writing and reading in binary format in file. ?
- wb+
- w
- wb
- w+
Which of the following is not a valid mode to open a file ?
- ab
- rw
- r+
- w+