A list can be changed by adding or removing items., True, False, A list does not have a variable name., True, False, A list uses square brackets., True, False, Items in a list are separated by dashes., True, False, You want to arrange the items in a list alphabetically. What command should you use?, .sort(), .alpha(), .arrange(), You want to add an item to a list. What command should you use?, .add(), .append(), .list(), You want to delete an item from a list. What command should you use?, .quit(), .isdelete(), .remove(), You want to count the number of apples. Which script correctly fixes the code? fruit=['orange', 'apple', 'banana', 'apple'] fruitcount('apple'), fruit=['orange', 'apple', 'banana', 'apple'] fruit.count('apple'), fruit=['orange', 'apple', 'banana', 'apple'] fruitcount(apple), fruit=['orange', 'apple', 'banana', 'apple'] fruitcount['apple'], You want to make a list of sports that can be changed. Which script correctly fixes the code? sports=('hockey', 'baseball', 'soccer') sports.append('basketball'), sports='hockey', 'baseball', 'soccer' sports.append('basketball'), sports('hockey', 'baseball', 'soccer') sports.append('basketball'), sports=['hockey', 'baseball', 'soccer'] sports.append('basketball'), You want to print a list of names. Which script correctly fixes the code? names=['Parker', 'Kelly', 'Riley'] print[names], names=['Parker', 'Kelly', 'Riley'] print=names, names=['Parker', 'Kelly', 'Riley'] print(names), names=['Parker', 'Kelly', 'Riley'] print['names']
0%
Session 5 Review: About Python Lists
共享
共享
由
Hussun310
编辑内容
保存
喜欢
打印
嵌入
更多
需要登录
视觉风格
显示所有
字体
活动设置
排行榜
作业
需要订阅
活动设置
排行榜
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
显示更多
显示更少
随堂测验
是一个开放式模板。它不会为排行榜生成分数。
作业
您尚未与学生分享任何活动。
要开始收集结果,请转到任何活动页面,然后选择
Set assignment(设置分配
)。
确认您的设置并与学生共享生成的链接。
设置作业
AI增强版:本活动包含AI生成的内容。
了解更多信息。
切换模板
显示所有
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?