Check sibling questions

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





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. 

Introducing your new favourite teacher - Teachoo Black, at only ₹83 per month

CA Maninder Singh's photo - Expert in Practical Accounts, Taxation and Efiling

Made by

CA Maninder Singh

CA Maninder Singh is a Chartered Accountant for the past 12 years. He also provides Accounts Tax GST Training in Delhi, Kerala and online.