subject

Your task is to create a phonebook using a dictionary. The keys are the names of the contacts and the values are named tuples containing the following attributes: "phone", "email", and "address". To achieve this create a function add_contact that receives the phonebook dictionary and returns the updated dictionary with a new contact. Before returning the updated dictionary you should print a summary message letting the user know the contact was added successfully and the number of contacts in the phonebook. Here's a sample input:

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
question
Computers and Technology, 24.06.2019 18:20
7. design a circuit with three inputs (x, y, and z) representing the bits in a binary number, and three outputs (a, b, and c) also representing bits in a binary number. when the input is 1, 2, or 3, the binary output should be one lesser than the input. when the input is 4, 5, or 6, the binary output should be one greater than the input. when the input is 0, the output is 0, and when the input is 7, the output is 7. show your truth table, all computations for simplification, and the final circuit.
Answers: 2
question
Computers and Technology, 24.06.2019 21:30
Aobject is used for displaying the results of a question based on stored data. a. query b. report c. table d. form
Answers: 2
You know the right answer?
Your task is to create a phonebook using a dictionary. The keys are the names of the contacts and th...
Questions
question
Mathematics, 03.03.2021 05:40
question
Mathematics, 03.03.2021 05:40
question
Physics, 03.03.2021 05:40
question
Physics, 03.03.2021 05:40
Questions on the website: 13722367