User Tools

Site Tools


python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
python [2019/08/09 11:51]
rpjday [5 Data structures]
python [2019/08/09 13:10]
rpjday [5 Data structures]
Line 38: Line 38:
   * "​import collections"​ (deque)   * "​import collections"​ (deque)
   * list comprehensions   * 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 =====
python.txt ยท Last modified: 2019/08/09 13:10 by rpjday