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
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Suggested prompts:
Запитайте мені питання про цей предмет
Сумаризуйте цей розділ
Покажіть реальні приклади
Чудово!
Completion показник покращився до 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