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 alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 8
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Awesome!
Completion rate improved to 2.7
Updating Lists
Stryg for at vise menuen
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 alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 8