Updating Lists
One of the methods (function that 'belongs to' a certain object, which is a list as for now) that we can apply to our list is .append(), which adds the item to the end of the list.
123word = ['c', 'a', 't'] word.append('s') print(word)
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 8
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Posez-moi des questions sur ce sujet
Résumer ce chapitre
Afficher des exemples du monde réel
Awesome!
Completion rate improved to 2.7
Updating Lists
Glissez pour afficher le menu
One of the methods (function that 'belongs to' a certain object, which is a list as for now) that we can apply to our list is .append(), which adds the item to the end of the list.
123word = ['c', 'a', 't'] word.append('s') print(word)
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 8