Python Programming - .Sort() Vs Sorted()

Publicado el: 11 marzo 2020
en el canal de: 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.


En esta página del sitio puede ver el video en línea Python Programming - .Sort() Vs Sorted() de Duración hora minuto segunda en buena calidad , que subió el usuario Olamigoke Philip 11 marzo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 275 veces y le gustó 10 a los espectadores. Disfruta viendo!