Python Programming - .Sort() Vs Sorted()

Опубликовано: 11 Март 2020
на канале: 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.


На этой странице сайта вы можете посмотреть видео онлайн Python Programming - .Sort() Vs Sorted() длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Olamigoke Philip 11 Март 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 275 раз и оно понравилось 10 зрителям. Приятного просмотра!