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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started