How to Append New Element?
Glissez pour afficher le menu
Let's move to methods that we can apply to our list. The first one is append(), which adds the item to the end of the list. Look at the example:
123word = ['c', 'a', 't'] word.append('s') print(word)
Everything is easy! It is your turn to practice.
If you want to dive deeper into data types, you can take a Python Data Types course.
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 13
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Section 1. Chapitre 13