News

Knowing how to reverse a list in Python is a trick that can come in handy surprisingly often. In this post, we’ll look at a few ways you can do it!
You can perform slicing in reverse order by using negative numbers for indexes. Python processes negative indexes relative to the end of the list; for example, -1 means the last item, and -2 means ...