Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been hired by a small publisher to create a dictionary to hold their client's name and telephone number. The publisher does not need

You have been hired by a small publisher to create a dictionary to hold their client's name and telephone number. The publisher does not need anything fancy; they just want a dictionary that will store all their client's names and telephone numbers. Here's the code that represents the telephone entries:

# define our simple telephone book telephone_book = {

“Ernest Hemingway”: “414-878-7745”, “Stephen King”: “240-123-4564”, “Charles Dickens”: “321-458-7785” }

1. Write a program that lists all the numbers in the dictionary. Here's the sample run of your program:

Client Name Telephone#

Ernest Hemingway 414-878-7745

Stephen King 240-123-4564

Charles Dickens 321-458-7785

Step by Step Solution

3.47 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

python solution for given problem telephonebook Ernest ... 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

Business research methods

Authors: William G Zikmund, Barry J. Babin, Jon C. Carr, Mitch Griff

8th Edition

978-032432062, 0324320620, 1439080674, 978-1439080672

More Books

Students also viewed these Programming questions