Answered step by step
Verified Expert Solution
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
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