Q. Differentiate between file modes r+ and rb+ with respect to Python.


Answer =

r+ opens a file for both reading and writing. The file pointer is placed at the beginning of the file.

rb+ opens a file for both reading and writing in binary format. The file pointer is placed at the beginning
of the file.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post