Lists is a sequence and a basic data structure. A list may contain strings (text) and numbers. A list is similar to an array in other programming languages, but has additional functionality.
Python Programming Bootcamp: Go from zero to hero
We define lists with brackets . To access the data, these same brackets are used.
Example list usage:
We can use the functions append() and remove() to manipulate the list.
We can sort the list using the sort() function.
If you want to have the list in descending order, simply use the reverse() function.
If you are new to Python programming, I highly recommend this book.