English

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

Advertisements
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
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×