Welcome to divisible’s documentation!

Functions to work with divisibles

divisible.is_divisible(x, y)

Checks if a number is divisible by another

Parameters
  • x (int) – Divisor of the operation.

  • y (int) – Dividend of the operation.

Returns

True if x can be divided by y without reminder, False otherwise.

Raises

ZeroDivisionError

Indices and tables