Question
A common task while writing software is to display a menu and ask the user for a choice: Select your choice from the following menu:
A common task while writing software is to display a menu and ask the user for a choice:
Select your choice from the following menu:
1. Search for a contact
2. Edit a contact
3. Add a contact
4. Delete a contact
5. Quit
Use python 3.7 to
(1) Write a function called displaymenu that displays a menu to the user (use the above as a guide) and allows the user to make a choice (using input). The function should return that choice to the calling function (you can use main() as the calling function).
(2) write a main function that takes a choice from the user and makes the calls to the other functions that correspond to the operation to be performed. (Give meaningful names to these functions. You do NOT have to write the other function definitions.)
I would greatly appreciated if you could help me, a beginner learning with python!
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