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)
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 8
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 2.7
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)
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 8