Question: Change the ' w ' to ' a ' in the open ( ) function. Execute the program again with different input. Examine the studentInfo.txt

Change the 'w' to 'a' in the open() function. Execute the program again with different input. Examine the studentInfo.txt file. What did 'a' as an argument in the open0 function do?
Notice the function - write . How many arguments does the write function have?
How does the write 0 function know what file to write to?
What line of code closes the file? Where is the line of code positioned in the program?
Rewrite the program so that the user can enter three names during one execution of the program. You may need to change the order of some of the code.
 Change the 'w' to 'a' in the open() function. Execute the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!