Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 381 Bytes

File metadata and controls

7 lines (4 loc) · 381 Bytes

Write a function is_multiple(a: int, b: int) -> bool that takes two integers, a and b. The function should return True if a is a multiple of b (i.e., a divided by b has no remainder), and False otherwise.

For example:

  • is_multiple(10, 2) → True because 10 is divisible by 2

Hint: solve is-even first.