KnowledgeBoat Logo

Computer Science

Which of the following statement is not correct ?

  1. We can write content into a text file opened using 'w' mode.
  2. We can write content into a text file opened using 'w+' mode.
  3. We can write content into a text file opened using 'r' mode.
  4. We can write content into a text file opened using 'r+' mode.

Python File Handling

6 Likes

Answer

We can write content into a text file opened using 'r' mode

Reason — We can only read content into a text file opened using 'r' mode.

Answered By

3 Likes


Related Questions