Python Programming - .Sort() Vs Sorted()

Pubblicato il: 11 marzo 2020
sul canale di: Olamigoke Philip
275
10

#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.


In questa pagina del sito puoi guardare il video online Python Programming - .Sort() Vs Sorted() della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Olamigoke Philip 11 marzo 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 275 volte e gli è piaciuto 10 spettatori. Buona visione!