Answered step by step
Verified Expert Solution
Link Copied!

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

pythonimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions