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
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
is_even_20220929-1.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for is_even_20220929-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d1a10baae7299fbfbac06fd6d7f74534303a2d5a9e73c4cc156c94d010fae1f |
|
MD5 | 9b590398605ecb92b2eeac49ec8dacf9 |
|
BLAKE2b-256 | 97b9a321358c83505c8cd2109dcb6e5e974b99b80de33965eb216ad527c12767 |