Skip to main content

Library to check if a number is Armstrong

Project description

armstrong-checker

A Python library to check if a number is an Armstrong number.

To use: from armstrong_checker import armstrong

armstrong("153")

Explanations

armstrong() receives a string containing a number. This number must be an integer. If any other parameter is passed, the function will return an error.

The return value of this function is a Boolean. The highest Armstrong number tested was: 115132219018763992565095597973971522401

So, I guarantee it will work with any number below that😃😜.

Instalation

pip install armstrong-checker

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

armstrong_checker-0.1.3.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

armstrong_checker-0.1.3-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file armstrong_checker-0.1.3.tar.gz.

File metadata

  • Download URL: armstrong_checker-0.1.3.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for armstrong_checker-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3a5eb60e34954f9835b432b23613bc66d0680f9e43c9aa581796ea7ddedcb766
MD5 1ec65218cf8eaccd92defacadc98a3a7
BLAKE2b-256 2c908321aa6796bbb084b3a6a84d29a10de2bd78087dbb4ef921eb55d18fe265

See more details on using hashes here.

File details

Details for the file armstrong_checker-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for armstrong_checker-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d26b0741d15082be7749889dbccd3a540dde232855c70378aaef5531be851edc
MD5 e815f79cc30f5db23e12b1716d32e37e
BLAKE2b-256 71fbd4cd361a71485087579df291174019bc74e621605dc93b813ab52a736b50

See more details on using hashes here.

Supported by

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