Python function to check whether a number is divisible by another number


Topic: Python function to check whether a number is divisible by another number

Solution

def multiple(m, n):
    return True if m % n == 0 else False
print(multiple(20, 5))
print(multiple(7, 2))



List all Python Programs