Question: Part A Create a program called read _ file.py that reads the address.txt file linked below into a list. Then, prompt the user to enter

Part A
Create a program called read_file.py that reads the address.txt file linked below into a list. Then, prompt the user to enter a line number, and display that line from the file. Keep repeating until the user decides to exit.
File to be used for testing: address.txt Download address.txt. Note: With most IDEs, you will need to add this file to your project; you can usually drag and drop the file to do so.
Part B
Create a program called envelope.py that prompts the user to input the following, storing each in a separate variable:
Recipient's name
Address
City
State
Zip Code
Then, the program should create a new file called envelope.txt with a rudimentary mailing envelope: Your name and return address at the top-left followed by the recipient's name and address.

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 Programming Questions!