Skip to main content

divisibleby

Return True if the value is divisible by the argument.

def divisibleby(
value: any,
arg: any
) - > boolean

Return True if the value is divisible by the argument.

Parameters

NameTypeDescription
valueanyThe numeric value or string representation of an integer to be tested for divisibility
arganyThe divisor used to check the divisibility of the input value

Returns

TypeDescription
booleanTrue if the value can be divided by the argument without a remainder, otherwise False