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)
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 8
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.7
Updating Lists
Veeg om het menu te tonen
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)
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 8