Loading the task…
Divisibility checks are common in filters, games, and simple math rules. Write is_divisible, which checks whether n divides evenly by both x and y. Return True if both divisions have no remainder; otherwise return False.
3, 1, 3True12, 2, 6True100, 5, 3Falsedef is_divisible(n: int, x: int, y: int) -> bool:
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in3, 1, 3True12, 2, 6True100, 5, 3False12, 7, 5False1000, 10, 100True12, 2, 1True