Question: python 1. Display the following menu to the user: 1) Create a new file 2)Display the file 3)Add a new item to the file make
python
1. Display the following menu to the user: 1) Create a new file 2)Display the file 3)Add a new item to the file make a selection 1,2 or 3 : ask the user to enter 1,2 or 3 . if they select anything other than 1,2 or 3 it should display a suitable error message. if they select 1 , ask the user to enter a school subject and save it to a new file called "subject.txt". it should overwrite any existing file with a new file. if they select 3 , ask the user to enter a new subject and save it to the file and then display the entire content of the file. run the program several times to test the options
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
