Question: Write the code for a python function called showQuotes that accepts a loaded dictionary from PART A and a string 's'. This function uses
Write the code for a python function called showQuotes that accepts a loaded dictionary from PART A and a string 's'. This function uses a regular expression to perform a case-insensitive search through all quotes in the dictionary using 's' as the search criteria and if a match is found, diplays the entire quote, followed by a "", followed by the starting index in the string where the match was found
Step by Step Solution
3.41 Rating (157 Votes )
There are 3 Steps involved in it
Heres a Python function called showQuotes that performs a caseinsensitive search through all quotes ... View full answer
Get step-by-step solutions from verified subject matter experts
