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:
9
1
2
3
word = ['c', 'a', 't']
word.append('s')
print(word)
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.
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
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.