Question: Looking for code in python Write a Python script that will take in a name and return the respective address based on a csv file

Looking for code in python

Write a Python script that will take in a name and return the respective address based on a csv file of names and addresses. If the name is not found in the file, prompt the user to enter an address for that name and add it to the file.

Input

Expected output

Todd

Frankie

Homer

Add address: 742 Evergreen Terrace

Homer

Todd: 344 South Fairview

Frankie: 1123 Wilson Way

No address found for Homer

Homer: 742 Evergreen Terrace

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!