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 - Version Pepy Total Downloads PyPI - License GitHub deployments PyPI - Status

🚀 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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isoddeven-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1b29d39ce054a2da190412e467c5b165c7ee17a15292eb06c034b7310deab30a
MD5 ae14282447cca9637648650c617e5631
BLAKE2b-256 65bd401076ebdf3e84cfd5cb347022d2c70c7d70edb744e31fc2acbbdd521077

See more details on using hashes here.

Provenance

The following attestation bundles were made for isoddeven-1.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: isoddeven-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14a0377ad63b02fc143eccdc80ed4a4c279060efe265764cda96a7ef5a856e2f
MD5 2ee06965edd05176c50551e43946bfa5
BLAKE2b-256 e6a44128d34fe4483c597f675d7f40efe0c6117f1a33e481cc7c9165317ddd51

See more details on using hashes here.

Provenance

The following attestation bundles were made for isoddeven-1.0.1-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