1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rasek [7]
3 years ago
9

Your task is to create a phonebook using a dictionary. The keys are the names of the contacts and the values are named tuples co

ntaining 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:
Computers and Technology
1 answer:
MatroZZZ [7]3 years ago
8 0

Answer:

Please check below for the code. I wrote this task using Python programming language.

Explanation:

phonebook = {}

def add_contact(name,details):

   phonebook[name] = details

   print ('Contact ' + name + ' with phone ' + details[0]

          + ', email ' + details[1] + ' and address ' + details[2]

          + ' has been added successfully!')

   print ('You now have ' + str(len(phonebook)) + ' contact(s) in your phonebook')

   return phonebook

add_contact('Arturo Vidal', ('08140590', '[email protected]', 'Barcelona'))

You might be interested in
WHAT DO YOU LEARN IN CODE.ORG​
liberstina [14]

Answer:

You learn how to animate and make websites

Explanation:

5 0
3 years ago
List and describe with details at least three approaches to selecting processes from priority-based multi-level queues.
garik1379 [7]

Based on the information given, it is important to give higher priority to the queue that contains the high priority thread.

<h3></h3><h3>What is the Important Fact?</h3>
  • A lot of interrupts can take place at any time, and due to that, they cannot always be ignored as  the part of code affected by interrupts need to be guarded from constant use.
  • So, the load-balancing requirements for keeping about the same number of threads would need to be taken or retained and the important case of top priority thread would also be kept.
  • An  priority-based scheduling algorithm can handle this situation if one run queue had all high-priority threads and a second queue had all low-priority threads because if giving greater priority to the two queue that has the national priority comment section as well as, so, first method is the thread in all of the queue.
  • Multi-level queue scheduling algorithm is used in scenarios where the processes can be classified into groups based on property like process type, CPU time, IO access, memory size, etc. One general classification of the processes is foreground processes and background processes.

To learn more about multi-level refer to:

brainly.com/question/16902508

#SPJ4

6 0
1 year ago
Help! ASAP! 1 Question.........°○°​
skelet666 [1.2K]

Answer: I think D)?

Explanation: Or B)

5 0
3 years ago
There is overlap in the subjects of study in the different information technology disciplines.
Korolek [52]

There is overlap in the subjects of study in the different information technology disciplines is a True statement.​

<h3>What is computer Science about?</h3>

There is found to be a lot of confusion about computer science and why it is said to be also called “computing”.

There is seen to be a lot of  allied computing-related fields, such as information systems and that of computer engineering.

Hence, There is overlap in the subjects of study in the different information technology disciplines is a True statement. because those subject have different topics.

Learn more about information technology from

brainly.com/question/25110079

#SPJ1

6 0
2 years ago
Read 2 more answers
Assume you have written a method with the header num mymethod(string name, string code). the method's type is
azamat
I need answer choices
5 0
4 years ago
Other questions:
  • Notice in the topology there are 3 network ranges that would be translated based on the ACL created. What will happen if more th
    6·1 answer
  • Which of the following statements is TRUE?
    11·2 answers
  • Which of the following is not a benefit of normalization?
    5·1 answer
  • In Paint, what tool should be used to select the red star without selecting the blue circle?
    14·1 answer
  • Which of the following representations in two's complement notation represents the largest value?
    12·2 answers
  • Get someone get her for me if need snap kell.c11
    10·1 answer
  • Tips for Interactions with Personalized LinkedIn Outreach?
    5·1 answer
  • Please help!!! I am very confused about this question!
    10·1 answer
  • Anyone want to talk? it can honestly be about any subject :)
    5·1 answer
  • What is a frame injection attack in a wireless network?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!