Skip to main content

A Python package to check if a number is odd or even.

Project description

isoddeven

A Python package to check if a number is odd or even.

PyPI - Status PyPI - Version Pepy Total Downloads PyPI - License GitHub deployments

🚀 Installation

You can install the package using pip:

pip install isoddeven

To update the package use this command:

pip install --upgrade isoddeven

📖 Usage

Here's a quick example of how to use it:

from isoddeven import isoddeven

print(isoddeven.isodd(1)) # True
print(isoddeven.isodd(2)) # False
print(isoddeven.iseven(3)) # False
print(isoddeven.iseven(4)) # True
print(isoddeven.state(5)) # odd
print(isoddeven.state(6)) # even

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

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

isoddeven-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

isoddeven-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file isoddeven-1.0.0.tar.gz.

File metadata

  • Download URL: isoddeven-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for isoddeven-1.0.0.tar.gz
Algorithm Hash digest
SHA256 60489b0f20621e003a566209ffd99cad232f00ee2936fb6d74002ccb9637c0a3
MD5 f63b9630ce7fc383a533989f0d290297
BLAKE2b-256 434615c5cb90e5892a564962d96d66e69b35d0385f1120d7473b28918f5bee69

See more details on using hashes here.

Provenance

The following attestation bundles were made for isoddeven-1.0.0.tar.gz:

Publisher: release.yml on nilaysarma/isoddeven

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file isoddeven-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: isoddeven-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for isoddeven-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c22fe80ac5d6a68f23be328857a539c9a083a3d7770ed030ca5851d7ec310cd1
MD5 b27327d73985fbe8960aa1aeeff530ba
BLAKE2b-256 1ccbd65f0520bf493b60090b62458da07655404a0c634c6af77b52154f1f7162

See more details on using hashes here.

Provenance

The following attestation bundles were made for isoddeven-1.0.0-py3-none-any.whl:

Publisher: release.yml on nilaysarma/isoddeven

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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