A

Admin • 832.27K Points
Coach

Q. Which method is used to write a new line in a file?

  • (A) write() with ' '
  • (B) newline()
  • (C) insertline()
  • (D) addline()
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

write('
') is used to add a new line to the file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.