This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
python [2019/08/09 10:36] rpjday [5 Data structures] |
python [2019/08/09 13:10] rpjday [5 Data structures] |
||
---|---|---|---|
Line 36: | Line 36: | ||
* lists | * lists | ||
+ | * "import collections" (deque) | ||
+ | * list comprehensions | ||
+ | * set | ||
+ | * dictionary | ||
+ | * key can be any immutable type | ||
+ | * "list(d)" returns list of keys | ||
+ | * "enumerate()" routine for any sequence | ||
+ | * "zip()" to iterate over two sequences simultaneously | ||
===== TOPICS ===== | ===== TOPICS ===== |