Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions