subject

Modify the function below to match the following description:
#
# This function takes in a dictionary dct. You can assume that the keys and
# values of the dictionary are limited to strings and numbers.
#
# If any key or value contains either MAX_DIGIT or the first letter of your
# last name (in either upper or lower case) then the key-value pair is removed
# and the modified dictionary is returned. Here containment means that the
# symbol is present anywhere -- e. g. 'doodle' contains letter 'd' and
# 195 contains 5
#
# Here are some examples assuming the first letter of my last name is d and
# MAX_DIGIT=5:
#
# fix_dictionary({'a':1, 3:'x', 'x':'y'})
# will return {'a':1, 3:'x', 'x':'y'} (no change)
#
# fix_dictionary({'d':1, 3:'x', 'x':'y'})
# will return {3:'x', 'x':'y'} (first key-value pair is removed)
#
# fix_dictionary({'DX':1, 3:'x', 'x':'y'})
# will return {3:'x', 'x':'y'} (first key-value pair is removed)
#
# fix_dictionary({'h':15, 3:'x', 'x':'y'})
# will return {3:'x', 'x':'y'} (first key-value pair is removed)
#
# fix_dictionary({'h':95, 3:'d', 'z':'paddle'})
# will return {} (all key-value pairs have been removed)
#

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
Andrina writes letters that are regularly sent to hundreds of her company’s customers. because of this, she would like for the mail merge command to be in her quick access toolbar, and she wants it to be the first button on the left. what should andrina do to place the mail merge button there?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
You know the right answer?
Modify the function below to match the following description:
#
# This function takes...
Questions
question
Mathematics, 19.10.2021 01:00
Questions on the website: 13722367