题目
单项选择题
Question1 In Python, which of the following collections is used to map unique keys to specific values? Select one alternative: tuple dictionary set list ResetMaximum marks: 2 Flag question undefined
选项
A.tuple
B.dictionary
C.set
D.list
查看解析
标准答案
Please login to view
思路分析
Consider what each Python collection type does in terms of data organization and access patterns.
Option 1: 'tuple' — a fixed-size, ordered collection of elements accessed by position. It does not provide a m......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Consider the following code segment: fruit = {"Apple": "Green", "Banana": "Yellow"} fruit["Apple"] = "Red" After it executes, what is the value of fruit?
The index of the first item in a dictionary is 0.
What is the number of the first index in a dictionary?
Which method would you use to get all the elements in a dictionary returned as a list of tuples (key, value)?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!