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)
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 8
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.7
Updating Lists
Swipe to show 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)
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 8