A file mode defines the type of operations that is to be performed on the file.
2 Likes
True
Reason — In Python, a file mode defines the types of operations that can be performed on the file, such as reading, writing, appending, etc.
Answered By
3 Likes
The default file open mode is write mode.
Opening a file in append mode erases the previous data.
A stream is defined as a sequence of characters.
readlines() function returns a list of strings, each separated by "\n".