Python Built-In Function sorted(): Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:


Also see: {{Internal|Python_Language_List#Sort|List | Sort}}
Also see: {{Internal|Python_Language_List#Sort|List | Sort}}
=Comparing Elements=

Revision as of 00:24, 11 February 2023

External

Internal

Overview

Sorted() sorts any sequence (list, tuple) and always returns a list with the elements in a sorted manner, without modifying the original sequence.

Also see:

List | Sort

Comparing Elements