πŸ“Š Python
Q. How can you write multiple lines to a file at once?
  • (A) write()
  • (B) writelines()
  • (C) writemany()
  • (D) append()
πŸ’¬ Discuss
βœ… Correct Answer: (B) writelines()

Explanation: writelines() can be used to write multiple lines from a list.

Explanation by: Mr. Dubey
writelines() can be used to write multiple lines from a list.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
40
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate