A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes in word pairs...


The coding language is python



The code in there may or not be correct I was playing around with it



Chapter was on lists and dictionaries


A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address,<br>birthday, etc. Write a program that first takes in word pairs that consist of a name and a phone number (both strings). That list is followed<br>by a name, and your program should output the phone number associated with that name.<br>Ex: If the input is:<br>Joe 123-5432 Linda 983-4123 Frank 867-5309<br>Frank<br>the output is:<br>867-5309<br>

Extracted text: A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes in word pairs that consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Ex: If the input is: Joe 123-5432 Linda 983-4123 Frank 867-5309 Frank the output is: 867-5309
Пнап.ру<br>1 user_input<br>input()<br>user_input.split()<br>dict(pair.split(':') for pair in entries)<br>2 entries<br>3 contact_list<br>%3D<br>

Extracted text: Пнап.ру 1 user_input input() user_input.split() dict(pair.split(':') for pair in entries) 2 entries 3 contact_list %3D

Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here