To append a list, the variable must be a list type. Once the variable is a list, you can then append it using the append() function. Like this:
x = []
x.append("hello")
print(x)
>>["hello"]
You can pretty much append most types.
Поиск
Chart
Категории
- Arts
- Business
- Computers
- Игры
- Health
- Главная
- Kids and Teens
- Деньги
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Больше
China as a global partner
The first series of broadcasts is dedicated to China. Alexey Kalinin, Vice-Rector for Research at...
International environmental issues
Key points
Certain global environmental issues, such as global warming and...
Олдбой. Oldboy. (2003)
1988 год. Обыкновенный и ничем непримечательный бизнесмен О Дэ-cу в день трёхлетия дочери по пути...
Dyslexia: History
Dyslexia was clinically described by Oswald Berkhan in 1881, but the term dyslexia was coined in...
The Incredibles. (2004)
While trying to lead a quiet suburban life, a family of undercover superheroes are forced into...