4.2.2.Graded Quiz Dictionaries - sj50179/IBM-Data-Science-Professional-Certificate GitHub Wiki

LATEST SUBMISSION GRADE 100% Question 1 Consider the following dictionary:

{ "The Bodyguard":"1992", "Saturday Night Fever":"1977"}

select the values

1 / 1 point

"1977"

Correct correct this is a value

"1992"

Correct correct this is a value

"The Bodyguard"

"Saturday Night Fever"

Question 2 The variable release_year_dict is a Python Dictionary, what is the result of applying the following method: release_year_dict.values() ?

1 / 1 point

retrieve the keys of the dictionary

retrieves, the values of the dictionary

Correct correct, this method returns the values

Question 3 What is wrong with the following dictionary: {'a':1, 'a':2} ?

1 / 1 point

it has duplicate entries for the keys

it has different entries for the values

Correct correct, a dictionary must have unique keys