Skip to content

Hmm, I wonder if this {insert_number} is divisible by this {insert_number} 🧐

Notifications You must be signed in to change notification settings

DucNgn/divisible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Divisible

Run Tests PyPI version

Great python package for all your hmm-is-this-number-divisible-by-this-number needs!

Installation:

pip install divisible
## --- OR ---
poetry add divisible

Voilà, done.

Usage

from divisible import is_divisible

is_divisible(200, 25) # --> True

Now supports is_even and is_odd, wow.

from divisible import is_odd

is_odd(200) # --> False
from divisible import is_even

is_even(200) # --> True

About

Hmm, I wonder if this {insert_number} is divisible by this {insert_number} 🧐

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages