A

Admin • 832.27K Points
Coach

Q. Which statement is true about file handling in Python?

  • (A) write() can write integers directly
  • (B) You must use close() after with statement
  • (C) open() returns a file object
  • (D) readline() reads all lines at once
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

open() returns a file object that you can operate on.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.