Question: 1. Show the single Python statement to create a file object (myFObj) for a text file called myData.txt that is allows data to be added
1. Show the single Python statement to create a file object (myFObj) for a text file called myData.txt that is allows data to be added to the end of the existing information in that file.
2.
What will the file (mydata.txt) look like after this code executes?
| fObj = open(mydata.txt, a) fObj.write(Joe ) fObj.close() | Assume mydata.txt contains the following: Sally David |
3. Show the single Python statement to access a file object (fObj) for a text file called myData.txt for writing.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
