Reversing Python Lists #shorts

preview_player
Показать описание
Short video demonstrating two ways to reverse lists in Python.

1. With array slicing syntax: people[::-1]

2. With the reversed built-in: reversed(people)

Note: the reversed built-in returns an iterator, which can be converted to a list using the list() function.

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:

#python #programming #pythonprogramming #compsci
Рекомендации по теме
Комментарии
Автор

[::-1] is one of the cheekiest things in Python IMO

warrenhenning
Автор

Okay I’m subd! Keep the content coming. I like ur vids!

_Pymander
Автор

Only in the middle of the video, i'v recognized, that you speak english 🙈
Omg accent

senioreasy
Автор

Already knew this. Kinda wanted to learn something new. Hey ho. Maybe next time.

davidmurphy
Автор

Where are you from? You have a very interesting accent.

MagnusAnand