Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

unique word 'science'and number is 10498 61 62 63 64 # Question 3 : # Modify the function such that it works according to the

unique word 'science'and number is 10498image text in transcribed

61 62 63 64 # Question 3 : # Modify the function such that it works according to the description below: # # This function assumes dictX is a dictionary with the following structure: # the key is always a string and the value is always an int. Here is a # sample dictionary: {'John': 93, 'jane':87, 'kramer': 53} and it has 3 entries. 65 66 67 68 69 70 71 72 73 # # Each key-value pair in a dictionary is considered to be an entry. # # This function returns the number of entries where the key has one letter # in common with your 7 letter unique word AND the value has one digit # in common with your 5 digit number. The letters can be in either upper # or lower case. 74 75 76 # 77 78 79 80 81 82 83 # So, for Jane: # question3({'john': 93, 'jane':87, 'kramer': 53}) # should return 2 (the first and third entry matches) # # question3({'ann': 93, 'pat':87, 'kramer': 987}) # should return 0 (no entry matches conditions) def question3 (dictx): return 0 84

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 Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago