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
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.0.tar.gz
(77.5 kB
view hashes)
Built Distribution
Close
Hashes for py_digits-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5622daa708eceedc6aa8410e08a4aa2857ec5f1ce01d88172dcd4d9ac1ceceb9 |
|
MD5 | 5b4247878c31662fdb7283dbedea9e0a |
|
BLAKE2b-256 | a875142fddaf402c6c5908770ef6fc1980ec877f44f37aeeb97ebe02fbc79a18 |