Question: CREATE A PYTHON 3 PROGRAM TO READ A TEXT FILE WITH EMPLOYEE DATA AND ACCESS IT USING NAME!( the data will be separated by symbol=|)

CREATE A PYTHON 3 PROGRAM TO READ A TEXT FILE WITH EMPLOYEE DATA AND ACCESS IT USING NAME!( the data will be separated by symbol="|")

FOR EXAMPLE DATA WILL BE IN THIS FORMAT:

Jhonson|23|123 new york street

lisa|18|226 California

THEREFORE THE FINAL OUTPUT SHOULD BE LIKE THIS:

ENTER THE NAME YOU WANT TO SEARCH FOR IN THE FILE: Jhonson

success! employee exists in the data and the record is a follows: Jhonson|23|123 new york street.

There also has to be a function that deletes the employee info!

example: ENTER THE NAME OF EMPLOYEE THAT YOU WANT TO DELETE: Lisa

lisa was deleted successfully and the record file was updated! // so at this point if i print the data file then lisa should not appear during file reading!

EDIT: FILE HAS TO BE A TEXT FILE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!