programming:python:dictionary
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| programming:python:dictionary [2022/06/06 10:13] – levor | programming:python:dictionary [2022/06/06 18:29] (current) – levor | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| |d.has_key(key)|returns a boolean value: True if key exists, else -> False| | |d.has_key(key)|returns a boolean value: True if key exists, else -> False| | ||
| |d.keys()|returns a list of the keys: [key1, key2, ...]| | |d.keys()|returns a list of the keys: [key1, key2, ...]| | ||
| - | |d.values()|returns | + | |d.values()|returns |
| |d**.items()**|returns a list of tuples: [(key1, | |d**.items()**|returns a list of tuples: [(key1, | ||
| |d.update(d2)|add all d2 // | |d.update(d2)|add all d2 // | ||
programming/python/dictionary.1654510429.txt.gz · Last modified: 2022/06/06 10:13 by levor
