-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Hands-On Data Structures and Algorithms with Python – Third Edition - Third Edition
By :
Once you have installed Python successfully for your respective OS, you can start this hands-on approach with data structures and algorithms. There are two popular methods to set up the development environment.
The first method to set up the Python executing environment is via the command line, after installation of the Python package on your respective operating system. It can be set up using the following steps.
py to start Python in the Windows Command Prompt.
Figure 1.1: Screenshot of the command-line interface for Python
The User Interface for the command-line execution environment is shown in Figure 1.1.
The second method to run the Python program is through Jupyter Notebook, which is a browser-based interface where we can write the code. The User Interface of Jupyter Notebook is shown in Figure 1.2. The place where we can write the code is called a “cell.”

Figure 1.2: Screenshot of the Jupyter Notebook interface
Once Python is installed, on Windows, Jupyter Notebook can be easily installed and set up using a scientific Python distribution called Anaconda by taking the following steps.
jupyter notebook command at the Command Prompt. Alternatively, following installation, the Jupyter Notebook app can be searched for and run from the taskbar.pip3 by running the following code in the terminal:
pip3 install notebook
jupyter notebook
On some systems, this command does not work, depending upon the operating system or system configuration. In that case, Jupyter Notebook should start by executing the following command on the terminal.
python3 -m notebook
It is important to note that we will be using Jupyter Notebook to execute all the commands and programs throughout the book, but the code will also function in the command line if you’d prefer to use that.