Sometimes, you are presented with a list in python, and you will like to get the first and last elements of the list. In other programming languages like JavaScript (es6), you have feature called destructuring for unpacking a list of items.
Python 3: Get First and Last element of a list
· 2 min read