.. | ||
support | ||
03-dict-set.ipynb | ||
dialcodes.py | ||
index0.py | ||
index_default.py | ||
index.py | ||
README.md | ||
strkeydict0.py | ||
strkeydict.py | ||
transformdict.py | ||
zen.txt |
Dictionaries and Sets
Sample code for Chapter 3 of Fluent Python 2e by Luciano Ramalho (O’Reilly, 2020)
Running the tests
Doctests
Use Python’s standard doctest
module, for example:
$ python3 -m doctest bisect_demo.py -v
Jupyter Notebook
Install pytest
and the nbval
plugin:
$ pip install pytest nbval
Run:
$ pytest --nbval