How to reverse the order of a Python list

preview_player
Показать описание
This tutorial video covers how to reverse the order of a list in Python.

Рекомендации по теме
Комментарии
Автор

Great video. . .your the 1st person I've seen using 'reversed'. Normally I see people using a negative slice. I learn something new everyday!

Colstonewall
Автор

Thanks a lot for a great video! Another way to reverse order of a list in Python: x = [1, 2, 3, 4, 5, 6, 7, 8, 9]. z = x[::-1] should give the reversed order of a list.

russici
Автор

Handy little script. Thank you with a big thumbs up!

DGA
Автор

Excellent videos, I'm learning lots about Python. Keep up the good work.

SnackbarTime
Автор

how would you go about doing this with names or words, while keeping the words straight?

brandonray