Advertisements
Advertisements
प्रश्न
Differentiate between 'w' and 'a' file modes in Python.
फरक स्पष्ट करा
उत्तर
Here are the differences between 'w' and 'a' modes:
- 'w' or write mode. This opens the file for writing. If the file already exists, its contents are erased.
- 'a' mode or add mode. It opens the file to add extra data at the end while keeping previous information.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?