Question: Given the following dictionary: { ' 4 5 6 9 8 ' : 'John Smith', ' 5 4 6 0 0 ' :'Mark Sebastian', '

Given the following dictionary:
{'45698': 'John Smith','54600':'Mark Sebastian','10100': 'Ruben Quin'}
Where: key represents the customer id and value the customer's name.
Write a program that iterates through the dictionary, print the customer id and then search and print if the customer's name has the letter 'i' followed by two other characters. The output will look like this:
Searching customer id: 45698
Substring is ith
Searching customer id: 54600
Substring is ian
Searching customer id: 10100
Not found
[Finished in 49ms]
Please explain and use ten lines of code
 Given the following dictionary: {'45698': 'John Smith','54600':'Mark Sebastian','10100': 'Ruben Quin'} Where:

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!