Differentiate between file modes r+ and rb+ with respect to Python.
Difference b/w r+ and rb+ with respect to Python
r+ | rb+ |
r+ Opens a file for both reading and writing. The file pointer placed at the beginning of the file. | rb+ Opens a file for both reading and writing in binary format. The file pointer placed at the beginning of the file. |