How to Append New Element?
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.
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 13
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 2.08
How to Append New Element?
Veeg om het menu te tonen
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.
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 13