#Python Programming
In this video, i explained the different use-case for the .sort() list method and sorted function and why we have the two functions.
The sort() method sorts the elements of a given list in a specific order - Ascending or Descending. Alternatively, you can also use Python's in-built function sorted() for the same purpose. However, the simplest difference between sort() and sorted() is: sort() makes changes to the given array itself while, sorted() returns a new iterable list.
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Programming - .Sort() Vs Sorted() durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Olamigoke Philip 11 mars 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 275 fois et il a aimé 10 téléspectateurs. Bon visionnage!