Technical requirements
In this chapter, and throughout this book, we will use Python version 3.10
, which is the most recent version of Python at the time of writing. Most of the code in this book will work on recent versions of Python from 3.6
. We will use features that were introduced in Python 3.6 at various points, including f-strings. This means that you may need to change python3.10
, which appears in any terminal commands, to match your version of Python. This might be another version of Python, such as python3.6
or python3.7
, or a more general command such as python3
or python
. For the latter commands, you need to check that the version of Python is at least 3.6 by using the following command:
python --version
Python has built-in numerical types and basic mathematical functions that suffice for small applications that involve only small calculations. The NumPy package provides a high-performance array type and associated routines (including basic mathematical functions...