A

Admin • 833.24K Points
Coach

Q. What does flush() do?

  • (A) Empties the file
  • (B) Flushes file content to disk
  • (C) Deletes file content
  • (D) Closes the file
  • Correct Answer - Option(B)
  • Views: 27
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

flush() forces writing of buffered data to the file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.