HDTutorial
EN
Python Tutorials - List Sorting | sort method

The creator does not allow this video to be played on other websites. You can watch it directly on YouTube.

Python Tutorials - List Sorting | sort method

95,925 views October 25, 2018 10:47

Watch on YouTube
ChannelAmulya's Academy

Description from the creator

In this Python programming video tutorial we will learn how to sort list using sort method in detail.

sort is a built in method which will modify original list and arrange elements in ascending or descending order.

Syntax of sort method is:
list_name.sort(key = None , reverse = false)

Here in this tutorial we will discuss about key function and reverse in detail with example.

For more free tutorials on computer programming
facebook.com/AmulsAcademy
twitter.com/AmulsAcademy

About this tutorial

Amulya's Academy published this 10:47 video tutorial on October 25, 2018. It has been watched 95,925 times on YouTube.

Category
Education
Duration
10:47
Published
October 25, 2018
Views
95,925
Likes
1,421

Tags

Share

Further reading

  • Python List sort() Method - JournalDev journaldev.com

    Python List sort() method sorts the list elements in the natural ordering. The sorting happens in-place, so the list is modified. Python has a built-in function – sorted() – which is used to create a sorted list from an…

  • Python List sort() Method - Tutorialspoint tutorialspoint.com

    Python List sort() Method - Python list method sort() sorts objects of list, use compare func if given.

  • Python List sort() Method - W3Schools w3schools.com

    The sort() method sorts the list ascending by default. You can also make a function to decide the sorting criteria(s). Syntax. list.sort(reverse=True|False, key=myFunc) Parameter Values. Parameter Description; reverse:…

This tutorial in other languages