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']

Session 5 Review: About Python Lists

par

Style visuel

Afficher tout

Paramètres d’activité

Classement

IA Améliorée : Cette activité contient du contenu généré par l’IA. Pour en savoir plus.

Changer de modèle

Restauration auto-sauvegardé :  ?