Whats the difference between sort() and sorted() ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Whats the difference between sort() and sorted() ?

22nd Jun 2020, 2:59 PM
Ajmal Muhammed
1 Answer
+ 2
sort is a a̶t̶t̶r̶i̶b̶u̶t̶e̶ method while sorted is a function. Both performs same task. Bagon There's a mistake
22nd Jun 2020, 3:17 PM
Tricker