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)
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 8
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 2.7
Updating Lists
Scorri per mostrare il 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)
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 8