Computer Science
What is the use of "w" in file handling?
Python File Handling
2 Likes
Answer
In file handling, the "w" mode is used to open a file for writing. If the file exists, it will be overwritten. If the file does not exist, a new file will be created with the specified name.
Answered By
2 Likes
Related Questions
The readlines() method returns …………… (a list of lines/a list of single characters).
Write two advantages of using an Optical Fibre cable over an Ethernet cable to connect two service stations which are 200 m away from each other.
Rewrite the following SQL statement after correcting the error(s). Underline the corrections made.
INSERT IN STUDENT (RNO, MARKS) VALUE (5, 78.5);Write a function Push() which takes number as argument and add in a stack "MyValue".