Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parity_comparer-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for parity_comparer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 28bd9cbb8531996c68b39cf2139571b0cfdc54cad1ac26f66b3ff9b8636dda6b
MD5 a47ca1685755b4490e69eae8f1372bca
BLAKE2b-256 a31a71708048210f8dd103aab5aef0b08125b96fb7f8e662f3aee06de6948200

See more details on using hashes here.

File details

Details for the file parity_comparer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for parity_comparer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f328c8959c407516fa1a07a056bfbf2e6f8c318bbd26ad520df05d781062940
MD5 2c11d91ec6e75d4be19f2ca6d8d1600e
BLAKE2b-256 b326b79c5f322f8625983c673fd0dabdf9155c1a8b606004505bf2b32f11ba84

See more details on using hashes here.

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