Sum the first X Pi digits
Project description
Py digits
This library was inspired by this meme:
Now we can easily solve it in less than a second!
Getting started
Install the library with:
pip install -U py-digits
Usage
from pydigits import sum_pi_digits
print(sum_pi_digits(31_415, 'odd'))
# 78662
print(sum_pi_digits(31_415, 'odd', 'binary'))
# 10011001101000110
Testing
Run the test suite with:
python -m unittest tests
To install it locally from the source code:
python setup.py develop
Publish
python setup.py register sdist upload
Change Log
1.0.0 (15/02/2022)
- First Release
1.0.1 (15/02/2022)
- Fix missing dependencies
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-digits-1.0.1.tar.gz
(77.5 kB
view hashes)
Built Distribution
Close
Hashes for py_digits-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48abc70ea7e9cd7b1ffb6c1c9959131701ef6128394747814f12d1c1d435bc56 |
|
MD5 | f9e11d41d900f6c33cfdb44bf6dc02d8 |
|
BLAKE2b-256 | 7e4ab81de994798f386e55a87564dab6f60448e8c99853c69d09ff9c74780e49 |