Python Reverse Method
Veröffentlicht 2023-03-03 01:09:45
0
8KB
reverse() can flip the list around. The reverse()
method doesn't return any value. It updates the existing list. Here's an example:
x = ["a", "b"]
x.reverse()
["b", "a"]
Suche
Kategorien
- Arts
- Business
- Computers
- Spiele
- Health
- Startseite
- Kids and Teens
- Geld
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Mehr lesen
Паразиты. Parasite. (2019)
Обычное корейское семейство Кимов жизнь не балует. Приходится жить в сыром грязном полуподвале,...
The Evolution of the Horror Movie Industry: A Tale of Fear, Innovation, and Endurance
The horror movie industry is one of the most enduring and versatile genres in cinema history....
Beyond GDP: other ways to measure the economy
Key points
Gross national product, or GNP, includes what is produced...
Victims of gambling. Is gambling for money a vice or entertainment?
Gambling has been around since time immemorial. Craps were played in Babylon, Ancient Egypt and...
10 Questions to Ask About Company Culture in an Interview
When interviewing for a new job, many candidates focus on responsibilities, salary, and...