Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 optionsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started