Question: in python Write a program that allows the user to enter the name of a person and the program will return who their father is.

in python

Write a program that allows the user to enter the name of a person and the program will return who their father is.

The child, father combinations should be stored in a dictionary. The child is the key and the father is the value.

Allow the user to add child, father pairs. Also allow the user to delete child, father pairs.

Put the program in a loop so the user can keep searching, adding, or deleting until they indicate they are finished.

Remember, if they search for a child that is not in the dictionary you need to display a message stating the person was not found. The same is true if they are deleting a child, father pair, if it is not in the dictionary, display a message that says not found.

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!