Skip to main content

Sum the first X Pi digits

Project description

Py digits

lint

This library was inspired by this meme:

Robot captcha 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)

Uploaded Source

Built Distribution

py_digits-1.0.0-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page