English

Which of the following mode in the file opening statement results or generates an error if the file does not exist?

Advertisements

Question

Which of the following mode in the file opening statement results or generates an error if the file does not exist?

Options

  • a+

  • r+

  • w+

  • None of the above

MCQ
Advertisements

Solution

r+

shaalaa.com
Reading from a Text File in Python
  Is there an error in this question or solution?
2022-2023 (March) Sample
Advertisements
Share
Notifications



      Forgot password?
Use app×