How to Sort a List of Lists in Python

preview_player
Показать описание
If you enjoy this video, please subscribe. I provide all my content at no cost. If you want to support my channel, please donate via

If there's a specific video you would like to see or a tutorial series, let me know in the comments and I will try and make it.

###How to sort a list of lists in Python###

data = [
["Jim", 1988],
["Xena", 1940],
["Alexa", 1950],
["Bob", 1977],
["Jerry", 1990],
["Cindy", 1995]
]

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

would there be anyway to reverse the sorting of the list so that the dates are sorted form high to low?

eoindoyle
join shbcf.ru