Python Reverse Method

0
8K

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"]

Search
Categories
Read More
Социальные проблемы
Мистер Смит едет в Вашингтон. Mr. Smith Goes to Washington. (1939)
Наивный идеалист Джефферсон Смит, лидер организации бойскаутов, назначен представителем в сенат....
By Nikolai Pokryshkin 2023-04-03 12:48:59 0 37K
Mental Health
ADHD: Medication - Stimulants
Methylphenidate and amphetamine or its derivatives are first-line treatments for ADHD as they are...
By Kelsey Rodriguez 2023-04-28 18:05:20 0 9K
Жизненные вопросы
Джокер. Joker. (2019)
Готэм, начало 1980-х годов. Комик Артур Флек живет с больной матерью, которая с детства учит его...
By Nikolai Pokryshkin 2022-12-30 10:49:32 0 26K
Science Fiction and Fantasy
Spider-Man: Into the Spider-Verse. (2018)
Teen Miles Morales becomes the Spider-Man of his universe, and must join with five spider-powered...
By Leonard Pokrovski 2022-12-23 18:59:33 0 17K
Social Issues
The Godfather. (1972)
The Godfather "Don" Vito Corleone is the head of the Corleone mafia family in New York. He is at...
By Leonard Pokrovski 2022-10-31 19:32:39 0 24K

BigMoney.VIP Powered by Hosting Pokrov