Generation

generate functionSat, 12 Nov 2022

check if a number is a factor of another number

def isFactor(a, b): return b % a == 0 isFactor(2, 10)

Questions about programming?Chat with your personal AI assistant