curriculum/challenges/english/blocks/daily-coding-challenges-python/699c8e045ee7cb94ed2322d9.md
Given two integers, determine if you can evenly divide the first one by the second one.
is_evenly_divisible(4, 2) should return True.
({test: () => { runPython(`
from unittest import TestCase
TestCase().assertIs(is_evenly_divisible(4, 2), True)`)
}})
is_evenly_divisible(7, 3) should return False.
({test: () => { runPython(`
from unittest import TestCase
TestCase().assertIs(is_evenly_divisible(7, 3), False)`)
}})
is_evenly_divisible(5, 10) should return False.
({test: () => { runPython(`
from unittest import TestCase
TestCase().assertIs(is_evenly_divisible(5, 10), False)`)
}})
is_evenly_divisible(48, 6) should return True.
({test: () => { runPython(`
from unittest import TestCase
TestCase().assertIs(is_evenly_divisible(48, 6), True)`)
}})
is_evenly_divisible(3186, 9) should return True.
({test: () => { runPython(`
from unittest import TestCase
TestCase().assertIs(is_evenly_divisible(3186, 9), True)`)
}})
is_evenly_divisible(4192, 11) should return False.
({test: () => { runPython(`
from unittest import TestCase
TestCase().assertIs(is_evenly_divisible(4192, 11), False)`)
}})
def is_evenly_divisible(a, b):
return a
def is_evenly_divisible(a, b):
return a % b == 0