|||
Returns True if seq is sorted
seq (list) – the seq. to query
list
key – an optional key to use
bool
Example
>>> seq = [(10, "a"), (0, "b"), (45, None)] >>> issorted(seq, key=lambda item:item[0]) False
<Page contents
>Page contents:
issorted()
Styled using the Piccolo Theme