Question: Answer all in python language please 1. File Problem 20 points (each section worth 5 points) a. Write a code segment that will get the
1. File Problem 20 points (each section worth 5 points) a. Write a code segment that will get the name of a file from the user. Save the name of the file in a variable named file_name. No exception handling is needed for this problem. b. Write a line of code that will open the file from the previous question (name is stored in file_name) for writing. Name the variable output. c. Write a line of code that will write your first two test grades into the file opened in the previous problem (variable name is output). Both test grades should be on the same line separated by a space. d. Write a line of code that will close the file from the previous
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
