A simple library that always returns 'Even'
Project description
Parity Comparer
This is a simple Python library that checks if a number is odd or even. It's a fairly accurate odd / even checker (roughly 50% accuracy).
Installation
To install this library, use pip:
pip install parity-comparer
Usage
To use the get_parity function, import it from the even_number_generator module:
from even_number_generator import get_parity
# Example usage:
result = get_parity(5)
print(result) # Output: Even
result = get_parity(100)
print(result) # Output: Even
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
parity_comparer-0.1.0.tar.gz
(2.8 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 parity_comparer-0.1.0.tar.gz.
File metadata
- Download URL: parity_comparer-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28bd9cbb8531996c68b39cf2139571b0cfdc54cad1ac26f66b3ff9b8636dda6b
|
|
| MD5 |
a47ca1685755b4490e69eae8f1372bca
|
|
| BLAKE2b-256 |
a31a71708048210f8dd103aab5aef0b08125b96fb7f8e662f3aee06de6948200
|
File details
Details for the file parity_comparer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: parity_comparer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f328c8959c407516fa1a07a056bfbf2e6f8c318bbd26ad520df05d781062940
|
|
| MD5 |
2c11d91ec6e75d4be19f2ca6d8d1600e
|
|
| BLAKE2b-256 |
b326b79c5f322f8625983c673fd0dabdf9155c1a8b606004505bf2b32f11ba84
|