Question: 1. The program must allow the user to enter in the name of the input file: a. The program must call a function that receives
1. The program must allow the user to enter in the name of the input file: a. The program must call a function that receives the input file name as a parameter b. The program must use a try.. except block to test that the file exists; if it does not exist, the program must display the appropriate error message and allow the reentry of the filename C Once the program determines that the file exists, the function must return the file handle 2. The program must allow the user to enter in the name of the output file: a. The program must call the same function as above that receives the output filename as a parameter b. The program must use atry.. except block to test that the file can be grated; if it cannot be created, the program must display the appropriate error message and allow the reentry of the filename c Once the program determines that the file can be created, the function must return the file handle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
