**Python --sorted()**
sorted()
and sort()
:
sort()
is only for list, whilesorted()
can sort all iterable objects.sort()
has not return value, sorting the original list,sorted
will return a new sorted list, and the original list stay unchanged.