Prepare the project

Prepare the project

Once we have Python installed we need to create the folders structure in which weŕe going to write the code for each chapter.

Create the folder for the chapters and its tests

To do so, we need to create a couple of folders with the following command:

mkdir tests src

Create a new Python project

After that we’re in position of creating the project using poetry.

To do it, just run the following command in the terminal:

poetry init

This command will create a new file called pyproject.toml in which the dependencies will be saved.

poetry add pytest expects