python_dictionaries
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
python_dictionaries [2023/08/02 19:38] – [initialize a dictionary] raju | python_dictionaries [2023/08/02 19:41] (current) – [find key corresponding to a value] raju | ||
---|---|---|---|
Line 8: | Line 8: | ||
==== find key corresponding to a value ==== | ==== find key corresponding to a value ==== | ||
+ | The following will find the first key corresponding to a given value | ||
< | < | ||
>>> | >>> | ||
Line 17: | Line 18: | ||
>>> | >>> | ||
1 | 1 | ||
+ | </ | ||
+ | < | ||
>>> | >>> | ||
>>> | >>> | ||
Line 23: | Line 26: | ||
2 | 2 | ||
</ | </ | ||
+ | |||
+ | Sample use case: | ||
+ | * In https:// | ||
==== initialize a dictionary ==== | ==== initialize a dictionary ==== |
python_dictionaries.1691005125.txt.gz · Last modified: 2023/08/02 19:38 by raju