Sort 2D List By Multiple Columns Using Python

preview_player
Показать описание
How do you sort a 2D list in Python?

Using the sorted() function and the key parameter you can use a lambda function that takes a tuple of the elements you want to order.

Рекомендации по теме