Question: Please answer question using phython 3.11 and provide the transcripts You are to write two programs in Python. The first is to accept data from
You are to write two programs in Python. The first is to accept data from a user and save the data to a file. The second program is to read the data from the file and print the data in a formatted report. Both programs are to be coded into one source code module. Program 1: The first program is to accept the names of several of your friends, first name and last name as separate data fields. For each person the program is to write the names to the output file as two separate fields. You are to use this program to write at least five (5) friend's names into the file. Name this program: WriteNames. Name the file: MyFriends. Program 2 The second program is to read the names of your friends that you stored on the MyFriends file and print out a formatted report as displayed below. The last names need to be tabbed so they align vertically. Name this program: ReadNames. Name the file: MyFriends
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
