A

Admin • 833K Points
Coach

Q. How can you open a file for both reading and appending?

  • (A) mode 'ra'
  • (B) mode 'a+'
  • (C) mode 'r+'
  • (D) mode 'w+'
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

'a+' mode allows reading and appending to the file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.