0

what is the difference between sort() and sorted() functions in python?

10th Jul 2020, 3:24 PM
Sahil Aujla
Sahil Aujla - avatar
5 Réponses
+ 4
The difference is,sort() is a function with no return value,it sorts the list and modifies the given list while sorted() function returns a new list with sorted elements of the given list
10th Jul 2020, 3:28 PM
Anjali Priya
Anjali Priya - avatar
+ 1
Anjali Priya thank you so much 😊😊
10th Jul 2020, 3:30 PM
Sahil Aujla
Sahil Aujla - avatar
0
Arnesh thanks
10th Jul 2020, 3:40 PM
Sahil Aujla
Sahil Aujla - avatar
0
😊Welcome
10th Jul 2020, 3:45 PM
Arnesh
Arnesh - avatar