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)
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 8
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 2.7
Updating Lists
Svep för att visa menyn
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)
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 8