other:python:misc_by_jyp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
other:python:misc_by_jyp [2021/10/26 13:27] – Added sorting section jypeter | other:python:misc_by_jyp [2021/10/26 13:42] – [Sorting] Added content jypeter | ||
---|---|---|---|
Line 202: | Line 202: | ||
==== Sorting ==== | ==== Sorting ==== | ||
- | < | + | * [[https:// |
+ | * Example: sorting the keys and the values of a dictionary, and then using the '' | ||
+ | * If we provide a '' | ||
+ | * < | ||
+ | |||
+ | >>> | ||
+ | [' | ||
+ | |||
+ | >>> | ||
+ | [-1, 0, 5, 10] | ||
+ | |||
+ | >>> | ||
+ | [' | ||
/* | /* |
other/python/misc_by_jyp.txt · Last modified: 2024/11/04 15:01 by jypeter