Question: Accessing Dictionaries - [ Medium ] - Unit 5 . 2 Complete the function print _ secret _ key. The function takes as input two

Accessing Dictionaries -[Medium]- Unit 5.2
Complete the function print_secret_key. 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 =[ 'key1', 'key2', 'secret']
values =['value1', 'value2', 'secret_value']
The output should be:
'secret_value'
Accessing Dictionaries - [ Medium ] - Unit 5 . 2

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 Programming Questions!