A tiny library to check if a number is odd or even.
Project description
oddoreven003
A tiny Python library to check if a number is odd or even.
Installation
pip install oddoreven003
Usage
from oddoreven003 import is_even, is_odd, parity
is_even(10) # True
is_odd(7) # True
parity(15) # 'odd'
parity("20") # 'even'
Features
- Supports int, float (if whole), string numbers
- Helpful errors
- Very lightweight and fast
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
oddoreven003-1.0.0.tar.gz
(2.6 kB
view details)
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 oddoreven003-1.0.0.tar.gz.
File metadata
- Download URL: oddoreven003-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6539fc9844a08b6739152e2a62ad6d02c0494592c8dacda7e9eea623c3842ea6
|
|
| MD5 |
c2c4bf6b4e1365bdb19741e159b29ff6
|
|
| BLAKE2b-256 |
616c359185c7cbdcdb0dd37d803d680cfb9488a3a8481c698954afb90aa84b60
|
File details
Details for the file oddoreven003-1.0.0-py3-none-any.whl.
File metadata
- Download URL: oddoreven003-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a68e3937bf36e7842204a0b843d52db959903fbf4ea470d29a6a2d9d07cb5c1
|
|
| MD5 |
b54ab969df7b061c9a5438da87f57191
|
|
| BLAKE2b-256 |
81fbedb775467e2afec7ec596d722970126ef67ca195b8d6bf26df2a17f70e11
|