Consider the following dictionary: { "The Bodyguard":"1992", "Saturday Night Fever":"1977" } select the values
Answers
Answered by
0
Answer:
1992 and 1977 are the values
Answered by
1
The values are: "1997" and "1992"
Explanation:
In python, a dictionary can be defined as a collection of unique, unordered items. Each item is in the form of a key-value pair.
Key: Pair
"The Bodyguard": "1992"
"Saturday Night Fever": "1977"
The keys in the given dictionary are "The Bodyguard", "Saturday Night Fever", and the values corresponding to these keys are "1997" and "1992"
You can use the values() method will return the values from the dictionary.
Syntax: dictionary_name.values()
Similar questions
English,
3 hours ago
Hindi,
3 hours ago
India Languages,
3 hours ago
Math,
5 hours ago
Biology,
8 months ago