Exercises of Python tricks the book https://www.amazon.com/-/es/Dan-Bader/dp/1775093301 I'm using Python 3.7.7
-
[With statement](https://github.com/js parraq/python-tricks/blob/master/Patterns%20for%20Cleaner%20Python/With-statement.ipynb)
-
Install virtualenv library
pip install virtualenv
-
Create virtualenv
virtualenv venv
-
Activate virtualenv
Mac/Linux
source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
You can see this tricks with jupyter notebooks with some browser or vs code
Activate environment or install environment on system and execute the following commands
jupyter notebook
Install python plugin and configure python environment on vscode