API Wrapper for the isEven api.
Project description
isEven.py
Check if an integer is even using the isEven API.
Main features:
- Cache Memorization
- API Retry Handler
- Hide Ads
- Get just the Ads
Install
pip install isEvenApi
Usage
You can view some examples in examples. Basic Usage:
from is_even import is_even as ie
print(ie.is_even(10)) # True
print(ie.is_odd(10)) # False
print(ie.ad(78)) # An Ad
print(ie.ad_without_number()) # An Ad without passing a number
Alternatives
This Function:
def is_even(number):
return False if number & 1 else True
Or This other:
def is_even(number):
return number % 2 == 0
Or a longer one:
def is_even(number):
if number % 2:
return False
else:
return True
Note:
I did this because I'm learning how to upload packages to PYPI with GitHub actions.
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
isEvenAPI-2.2.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for isEvenAPI-2.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4822349186902e8211af344d2f1d5b7f0d614a8f2e7ea2a070ddbb3204f0e4 |
|
MD5 | 19da13bd1fa45efba06970889a0f8f59 |
|
BLAKE2b-256 | 52f3a1d7ef6032ddde0ded7856305d23b6a6e22576fdf6f505347a17eb4c94fe |