Question: Need Help Creating a Function (Python 3) You are to code a module which contains the definition for a function named searchEntry. This function takes
Need Help Creating a Function (Python 3)
You are to code a module which contains the definition for a function named searchEntry. This
function takes one dictionary parameter, book. Your module should be in a file named Search.py
# The dictionary 'book' is contains name:AddressEntry pairs.
# eg.) book = { name: AddressEntry, name2: AddressEntry }
# name key consists of all upper case letters, no blanks
# For example the key for the name John A Smith is JOHNSMITHA
The function searchEntry is to do the following:
* ask the user for a first name, last name and middle initial
* transform first name, last name and middle initial to for required for key as explained above
*if the user IS in the dictionary, print out the entry for this user
*if the user IS NOT in the dictionary, print a message stating this AND
Print out the full names of all entries in the dictionary with the same last name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
