Python_02

A visually appealing illustration depicting Python lists, code snippets, and colorful list items, in a modern digital environment that suggests programming and learning

Master Python Lists

Test your knowledge of Python lists with this interactive quiz! Whether you're a beginner or just need a refresher, this quiz covers essential topics that will help you solidify your understanding of list operations.

Different questions include:

  • Declaration of lists
  • List manipulation
  • Accessing elements
  • Sorting and reversing lists
10 Questions2 MinutesCreated by CodingNinja42
Déclaration d'une liste:
List = []
Ma_liste = {}
Ma_liste = ['data']
Concatination de deux listes:
List1.concat(list2)
List3 = [list1, list2]
Affichage du 1er element de la liste:
Ma_liste[0]
Ma_liste[1]
Ajouter la note 10 a la liste de notes: notes = [20,15,9,17]
Notes.add(10)
Notes + 10
Notes.append(10)
Supprimer la note 15 de la liste notes: notes = [20,15,9,17, 10]
Notes.remove(15)
Notes.del(15)
Delete.notes(15)
Trier une liste: notes = [20,15,9,17, 10]
Notes.sort()
Sort.notes()
C'est quoi l'output de notes.reverse() sachant que notes = [20,10,8,9,17]
Notes = [8,9,10, 17, 20]
Notes = [20,17, 10, 9, 8]
Remplacer la couleur verte par 'rouge': couleurs = ['bleu', 'vert', 'jaune']
Couleurs[1] = 'rouge'
Couleurs[2] = 'rouge'
Couleurs('vert'].replace('rouge')
L'output de type(notes) sachant que notes = [20,14,12]
List
Tableau
Afficher une liste: notes = [10,20,15]
Print list(notes)
Print(notes)
{"name":"Python_02", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Python lists with this interactive quiz! Whether you're a beginner or just need a refresher, this quiz covers essential topics that will help you solidify your understanding of list operations.Different questions include:Declaration of listsList manipulationAccessing elementsSorting and reversing lists","img":"https:/images/course1.png"}
Powered by: Quiz Maker