isoddeven
A Python package to check if a number is odd or even.
🚀 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
🔷 Run in terminal
You can run it in your terminal by using it's Command Line Interface (CLI) commands:
# Checks if the number is odd or even
isoddeven <number>
# Examples
isoddeven 7
7 is odd
isoddeven 10
10 is even
You can use -o (or --odd) to check if the number is odd, and -e (or --even) to check if it's even. These return True or False.
# Odd Check
isoddeven -o <number>
# Even check
isoddeven -e <number>
# Examples
isoddeven -o 1
True
isoddeven -o 2
False
isoddeven -e 4
True
isoddeven -e 5
False
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Release files for isoddeven 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| isoddeven-1.1.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| isoddeven-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / isoddeven-1.1.0.tar.gz
| Download URL | isoddeven-1.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ee8d355c7af5f4451da56df2d07a75c72ebc073125c4ad8fcb1218f6ef25ea8
|
|
BLAKE2b-256 checksum How to use checksums |
6f32af718e4fc6819181578c82ea7dc2d8a0815574adb5eada600ff48a8eb5b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.
Transparency logRelease files / isoddeven-1.1.0-py3-none-any.whl
| Download URL | isoddeven-1.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c3fb85ec5670697b258c44474a2860566f9f79f42dea14c7841d9c716f6aa90
|
|
BLAKE2b-256 checksum How to use checksums |
a6bd8cac198bb6491983f85e48c70af158ebe40a32667274b9a6e4478aa231d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.
Transparency log