subject

Use a for/else loop to traverse through the key names in the dictionary below in order to find Mr. Potatohead’s mailing address. The key name is his social security number. Once you find his SSN (key-name), you can display its value by using the following function: print (Dictary. get(123-45-6789))

If the key you are looking for does not exist, your code should break out of the loop and display the following message: “Key not found”

Dictary = {
'code':6734,
'dept': 'sales',
123-45-6789:"Mr. Potato Head \n234 Potato Lane \nPotato Chip, ID 77725"
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Dr. wisteria is a prominent chiropractor in the chicago area. she wants to provide a forum for her patients to discuss their health concerns and to seek and offer advice to other patients. which telecommunications tool is most appropriate for dr. wisteria's needs?
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
What is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer?
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
Answers: 1
You know the right answer?
Use a for/else loop to traverse through the key names in the dictionary below in order to find Mr. P...
Questions
question
Social Studies, 18.10.2020 14:01
question
Mathematics, 18.10.2020 14:01
question
Mathematics, 18.10.2020 14:01
Questions on the website: 13722367