Question: Accessing Dictionaries - [ Medium ] - Unit 5 . 2 Complete the function print _ secret _ key. The function takes as input two
Accessing Dictionaries Medium Unit
Complete the function printsecretkey. The function takes as input two lists of strings, keys and values.
First, construct a dictionary consisting of each key and value given, in the order given. Then print the value in the dictionary corresponding to the key "secret".
The function does not need to return anything.
As an example, if the function is passed the following input:
keys 'key 'key 'secret'
values value 'value 'secretvalue'
The output should be:
'secretvalue'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
