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 代碼
刪除
恢復自動保存:
?