Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 3)
3.
What is the purpose of the write() method when used with a file object?
To create a new file
To read the contents of a file
To write data to a file
To close a file
Answer: Option
Explanation:
The write() method is used to write data to a file in Python.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.