Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

In what sense is a vertical LM schedule a classical case?

Answered: 1 week ago

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago