Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose I want to make a list or contacts that allows me to lookup someones phone number by first name. Suppose this list is Bill

Suppose I want to make a list or contacts that allows me to lookup someones phone number by first name. Suppose this list is

Bill 385-353-1234

Rich 385-269-1234

Jane 801-352-1234

(A)Write a snippet of code that will store this information in a dictionary called Contact with each name as the key and corresponding phone number (as a string) as the value. You dont have to parse the data, just create a dictionary that has the information in it.

(B) write a line of code that will get Bills number from the Dictionary.

In python please

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Define Administration and Management

Answered: 1 week ago

Question

Define organisational structure

Answered: 1 week ago

Question

=+ Are you interested in creating or

Answered: 1 week ago

Question

=+working on a micro-multinational?

Answered: 1 week ago