πŸ“Š Python
Q. Which method is used to write a new line in a file?
  • (A) write() with '\n'
  • (B) newline()
  • (C) insertline()
  • (D) addline()
πŸ’¬ Discuss
βœ… Correct Answer: (A) write() with '\n'

Explanation: write('\n') is used to add a new line to the file.

Explanation by: Mr. Dubey
write('\n') is used to add a new line to the file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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