Computer Science
The default file open mode is write mode.
Python Data Handling
3 Likes
Answer
False
Reason — The default file open mode in Python is read mode ('r'). If the mode is not specified when opening a file, Python assumes it to be in read mode by default.
Answered By
2 Likes
Related Questions
A close() function breaks the link of the file object and the file on the disk.
When we open a file in read mode, the given file must exist in the folder; otherwise, Python will raise FileNotFound error.
Opening a file in append mode erases the previous data.
A file mode defines the type of operations that is to be performed on the file.