diff --git a/python-rounding/README.md b/python-rounding/README.md index 3a6ab62c59..3dde0a3b8d 100644 --- a/python-rounding/README.md +++ b/python-rounding/README.md @@ -1,3 +1,11 @@ # How to Round Numbers in Python Here you can find code examples showing different rounding strategies as covered by the Real Python tutorial [How to Round Numbers in Python](https://realpython.com/python-rounding/). + +## Requirements + +The code requires Python 3.12 or later. To run the NumPy and pandas examples, install the pinned dependencies into a virtual environment: + +```console +$ python -m pip install -r requirements.txt +``` diff --git a/python-rounding/requirements.txt b/python-rounding/requirements.txt new file mode 100644 index 0000000000..7c32977de0 --- /dev/null +++ b/python-rounding/requirements.txt @@ -0,0 +1,2 @@ +numpy==2.5.3 +pandas==3.0.6