Skip to main content

is-even https://pypi.org/project/is-int-even/

Returns true if the number passed is even, returns false if it is not.

Inspired by samuelmarina/is-even and is the python version of it :)

Installing

pip install -U git+https://github.com/sifte/is-int-even.git

Example

from is_int_even import is_even

is_even(0) # true
is_even(1) # true
is_even(2) # true
# and so on...  current limit is 125,000

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

is-int-even-0.0.2.tar.gz (316.5 kB view details)

Uploaded Source

File details

Details for the file is-int-even-0.0.2.tar.gz.

File metadata

  • Download URL: is-int-even-0.0.2.tar.gz
  • Upload date:
  • Size: 316.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for is-int-even-0.0.2.tar.gz
Algorithm Hash digest
SHA256 894dd0c09a2f64f418e98be6f8ecb390b96cc4c859a11b5d7e70b66e50388f94
MD5 595d84d3b7b6dec56d76cba23172a285
BLAKE2b-256 8848c9d772e589a474c01340904325ca03b46705bde2072748b187a076782d4e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page