How to Append New Element?
Let's move to methods that we can apply to our list. The first one is append()
, which adds the item to the end of the list. Look at the example:
123word = ['c', 'a', 't'] word.append('s') print(word)
Everything is easy! It is your turn to practice.
If you want to dive deeper into data types, you can take a Python Data Types course.
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 13
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 2.08
How to Append New Element?
Свайпніть щоб показати меню
Let's move to methods that we can apply to our list. The first one is append()
, which adds the item to the end of the list. Look at the example:
123word = ['c', 'a', 't'] word.append('s') print(word)
Everything is easy! It is your turn to practice.
If you want to dive deeper into data types, you can take a Python Data Types course.
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 13