Differentiate between file modes r+ and w+ with respect to Python.
Answer:
r+ |
w+ |
Opens a file for both reading and writing . |
Opens a file for both writing and reading. |
The file pointer will be at the beginning of the file. |
Overwrites the file if the file exists . If the file does not exist , creates a new file for reading and writing. |