Question: [python3] contacts ={} def create_contact(contacts, first, last, email, age, phone): def update_contact_number(contacts, first, last, phone): def update_contact_email(contacts, first, last, email): def update_contact_age(contacts, first, last, age):

[python3]

contacts ={} def create_contact(contacts, first, last, email, age, phone): def update_contact_number(contacts, first, last, phone):

def update_contact_email(contacts, first, last, email):

def update_contact_age(contacts, first, last, age): def get_contact_email(contacts, first, last): return

def get_contact_age(contacts, first, last): return

def get_contact_number(contacts, first, last): return contacts[[first,last],2]

def contains_contact(contacts, first, last): if [first, last] in contacts: return True else: return False

def main(): contacts = {} create_contact(contacts, "Katie", "Katz", "katie.katz@nau.edu", 25, "857-294-2758") print("Creation of Jim Jones: {}".format("passed" if contains_contact(contacts, "jim", "Jones") else "Failed")) update_contact_age(contacts, "Sarah", "Sanders", 19) print("Updating Sarah Sanders age to 19: {}".format("Passed" if get_contacts_age(contacts,"sarah", "sanDers") == 19 else "Failed"))

=======================================================================================

You should implement several functions that the Phone Contacts program will need. Each function with take in data through the parameters (i.e., variables names listed in parentheses) and make updates to data structure that holds the contact information, return, or print information for a particular contact. The parameters needed are listed in the table below, and each function is described below that.

=======================================================================================

How can I make to implement it?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!