Menu
CoddyTech

Display Menu

Part of the Logic & Flow section of Coddy's Python journey. Lesson 17 of 78.

challenge icon

Challenge

Easy

In this project, we will build a Contact Book application step by step by breaking it into small, manageable functions. The first step is to create a display_menu function.

Create a function named display_menu that prints the main menu options for the Contact Book.

It should print exactly:

Contact Book Menu:
1. Add Contact
2. View Contact
3. Edit Contact
4. Delete Contact
5. List All Contacts
6. Exit

This function will be the starting point of the program, helping users navigate through the options. The tests call display_menu() for you.

Try it yourself

All lessons in Logic & Flow

Practice on your own: Online Python compiler