Skip to main content

Determine whether a number is even or odd

Project description

The Is Even Module

This module contains an is_even function that you can use to determine whether a number is even or odd.

Usage Example

Firstly, install the module with.

python3 -m pip install is_even_20220929

After the module is installed, you can use it as show in this example.

import default

print("Is 2 an even number: %s" % default.is_even(2))
print("Is 3 an even number: %s" % default.is_even(3))

This will produce:

Is 2 an even number: True
Is 3 an even number: False

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

is_even_20220929-1.0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

is_even_20220929-1.0.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page