Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python divisors

def isDivisor(number, divisor):
  return number % divisor == 0

# % is modulo sign. This returns the remainder
 
PREVIOUS NEXT
Tagged: #python #divisors
ADD COMMENT
Topic
Name
6+6 =