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.
🚀 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60489b0f20621e003a566209ffd99cad232f00ee2936fb6d74002ccb9637c0a3
|
|
| MD5 |
f63b9630ce7fc383a533989f0d290297
|
|
| BLAKE2b-256 |
434615c5cb90e5892a564962d96d66e69b35d0385f1120d7473b28918f5bee69
|
Provenance
The following attestation bundles were made for isoddeven-1.0.0.tar.gz:
Publisher:
release.yml on nilaysarma/isoddeven
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
isoddeven-1.0.0.tar.gz -
Subject digest:
60489b0f20621e003a566209ffd99cad232f00ee2936fb6d74002ccb9637c0a3 - Sigstore transparency entry: 182934309
- Sigstore integration time:
-
Permalink:
nilaysarma/isoddeven@08b08853c3112facf5ae620660a962934e6d7394 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/nilaysarma
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@08b08853c3112facf5ae620660a962934e6d7394 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c22fe80ac5d6a68f23be328857a539c9a083a3d7770ed030ca5851d7ec310cd1
|
|
| MD5 |
b27327d73985fbe8960aa1aeeff530ba
|
|
| BLAKE2b-256 |
1ccbd65f0520bf493b60090b62458da07655404a0c634c6af77b52154f1f7162
|
Provenance
The following attestation bundles were made for isoddeven-1.0.0-py3-none-any.whl:
Publisher:
release.yml on nilaysarma/isoddeven
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
isoddeven-1.0.0-py3-none-any.whl -
Subject digest:
c22fe80ac5d6a68f23be328857a539c9a083a3d7770ed030ca5851d7ec310cd1 - Sigstore transparency entry: 182934311
- Sigstore integration time:
-
Permalink:
nilaysarma/isoddeven@08b08853c3112facf5ae620660a962934e6d7394 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/nilaysarma
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@08b08853c3112facf5ae620660a962934e6d7394 -
Trigger Event:
push
-
Statement type: