题目
ISOM 316 2 Coding for Business - Fall 2025 MidTerm Exam 2
单项选择题
You are creating a Python script that will make use of user input contact names and their associated phone numbers. What Python data structure would be ideal for storing and accessing these associated values?
选项
A.lists
B.tuples
C.dictionaries
D.strings
查看解析
标准答案
Please login to view
思路分析
Question restatement: You are creating a Python script that will make use of user input contact names and their associated phone numbers. What Python data structure would be ideal for storing and accessing these associated values?
Option 1: lists
- Lists are ordered collections of items, great for storing multiple values of the same type or related items in a sequence. However, to access a phone number by a ......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)?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!