Q. Which method is used to write a new line in a file?
β
Correct Answer: (A)
write() with '\n'
Explanation: write('\n') is used to add a new line to the file.